[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/utils luci_admin



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe sourceware org	2006-08-03 03:58:23

Modified files:
	luci/utils     : luci_admin 

Log message:
	fix restore

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.34&r2=1.35

--- conga/luci/utils/luci_admin	2006/08/03 03:30:02	1.34
+++ conga/luci/utils/luci_admin	2006/08/03 03:58:23	1.35
@@ -426,7 +426,7 @@
 
 		x.manage_addFolder(id, title)
 		try:
-			new_system = eval('app.luci.systems.storage.' + id)
+			new_system = app.luci.systems.storage.get(id)
 			if not new_system:
 				raise
 			new_system.manage_acquiredPermissions([])
@@ -487,7 +487,7 @@
 
 		try:
 			x.manage_addFolder(id, title)
-			new_cluster = eval('app.luci.systems.cluster.' + id)
+			new_cluster = app.luci.systems.cluster.get(id)
 
 			if not new_cluster:
 				raise
@@ -535,7 +535,7 @@
 
 				try:
 					new_cluster.manage_addFolder(newsys, stitle)
-					newcs = eval('app.luci.systems.cluster.' + id + '.' + newsys)
+					newcs = app.luci.systems.cluster.get(id).get(newsys)
 					if not newcs:
 						raise
 					newcs.manage_acquiredPermissions([])
@@ -723,7 +723,6 @@
 	except:
 		pass
 		
-
 	try:
 		storagedir = app.luci.systems.storage
 		clusterdir = app.luci.systems.cluster


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]