Skip to contentSkip to conversation

conga/luci/utils luci_cleanup

Cluster-devel [email protected] 1 participant 1 message Aug 3, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-08-03 18:41:54

Modified files:
luci/utils : luci_cleanup

Log message:
nits

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_cleanup.diff?cvsroot=cluster&r1=1.2&r2=1.3

luci/utils/luci_cleanup +4 -2
@@ -116,7 +116,7 @@
 		passwd = rand.read(16)
 		rand.close()
 	except:
-		sys.stderr.write('Unable to read from /dev/urandom')
+		sys.stderr.write('Unable to read from /dev/urandom\n')
 		return -1
 
 	try:
@@ -137,10 +137,11 @@
 		member_list = map(lambda x: x.id, membertool.listMembers())
 		membertool.deleteMembers(member_list)
 	transaction.commit()
-	user_items = app.luci.acl_users.source_users.objectItems()
 
+	user_items = app.luci.acl_users.source_users.objectItems()
 	if user_items and len(user_items):
 		app.luci.acl_users.source_users.manage_delObjects(map(lambda x: x[0], user_items))
+		transaction.commit()
 
 	app.luci.portal_memberdata.pruneMemberDataContents()
 	transaction.commit()
@@ -159,6 +160,7 @@
 			cluster.manage_delObjects(map(lambda x: x[0], cluster_items))
 			transaction.commit()
 
+	transaction.commit()
 	conn.close()
 	db.pack()
 	db.close()