Ignore:
Timestamp:
Mar 12, 2010, 5:11:50 PM (15 years ago)
Author:
slederer
Message:

neue SOAP-Operation getSimpleResource implementiert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/src/VanHelsingWrapper.py

    r836 r839  
    7474    return result
    7575
     76def 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
    7686def getResourceById(directorName,resId):
    7787    dirdcfg=getDirectorConfig(directorName)
     
    91101    loadDirectorConfig(filename)
    92102
    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)
    94108
Note: See TracChangeset for help on using the changeset viewer.