Changeset 839 for vanHelsing/trunk/src/VanHelsingWrapper.py
- Timestamp:
- Mar 12, 2010, 5:11:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/VanHelsingWrapper.py
r836 r839 74 74 return result 75 75 76 def keyValueList(res): 77 result=[] 78 for i in res.items: 79 #if i.type=="Name": 80 # continue 81 82 result.append((i.type,i.value)) 83 84 return result 85 76 86 def getResourceById(directorName,resId): 77 87 dirdcfg=getDirectorConfig(directorName) … … 91 101 loadDirectorConfig(filename) 92 102 93 print getResources("bacula-dir","Client") 103 clientIds=getResources("bacula-dir","Client") 104 105 c=getResourceById("bacula-dir",clientIds[0][0]) 106 print c 107 print keyValueList(c) 94 108
Note:
See TracChangeset
for help on using the changeset viewer.