Changeset 861 for vanHelsing/trunk/src/VanHelsingWrapper.py
- Timestamp:
- Apr 13, 2010, 5:48:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/VanHelsingWrapper.py
r855 r861 96 96 v = a.get_element_value() 97 97 myResource.add(k, v) 98 98 try: 99 status 100 except NameError: 101 status = "resourceUpdated" 99 102 else: 100 resource = resource.Resource() 101 resource.name = resInfo.get_element_resName() 102 setResourceById(resource.getId, directorName, attributes, resInfo) 103 MyResource = resource.Resource() 103 104 104 status = "wtf" 105 105 resId, status = setResourceById(MyResource.id, directorName, attributes, resInfo) 106 status = "resourceCreated" 107 print status 106 108 return resId, status 107 109 … … 121 123 clientIds=getResources("bacula-dir","Client") 122 124 123 #c=getResourceById("bacula-dir",clientIds[0][0]) 124 #print c 125 #print keyValueList(c) 126 attList = [("name", "klaus"), ("director", "bernd"), ("FileSet","homeAll")] 127 resId, status = setResourceById(100, "bacula-dir", attList) 125 c=getResourceById("bacula-dir",clientIds[0][0]) 126 print c 127 print keyValueList(c)
Note:
See TracChangeset
for help on using the changeset viewer.