Ignore:
Timestamp:
Apr 13, 2010, 5:48:55 PM (15 years ago)
Author:
tobias
Message:

new resource operation and fault messages added

File:
1 edited

Legend:

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

    r855 r861  
    9696            v = a.get_element_value()
    9797            myResource.add(k, v)
    98 
     98        try:
     99            status
     100        except NameError:
     101            status = "resourceUpdated"
    99102    else:
    100         resource = resource.Resource()
    101         resource.name = resInfo.get_element_resName()
    102         setResourceById(resource.getId, directorName, attributes, resInfo)
     103        MyResource = resource.Resource()
    103104       
    104     status = "wtf"
    105    
     105        resId, status = setResourceById(MyResource.id, directorName, attributes, resInfo)
     106        status = "resourceCreated"
     107    print status
    106108    return resId, status
    107109
     
    121123    clientIds=getResources("bacula-dir","Client")
    122124       
    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.