Changeset 839 for vanHelsing/trunk/src/VanHelsingServer.py
- Timestamp:
- Mar 12, 2010, 5:11:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/VanHelsingServer.py
r837 r839 48 48 return request,response 49 49 50 def soap_getSimpleResource(self, ps, **kw): 51 request,response=VanHelsing.soap_getSimpleResource(self,ps) 52 53 resId=request.get_element_resId() 54 resDirector=request.get_element_director() 55 56 print resId 57 58 resource=VanHelsingWrapper.getResourceById(resDirector,resId) 59 attributes=VanHelsingWrapper.keyValueList(resource) 60 61 resInf=response.new_resInfo() 62 print dir(response) 63 resInf.set_element_director(resDirector) 64 resInf.set_element_resId(resId) 65 resInf.set_element_resType("type") 66 resInf.set_element_resName("name") 67 68 response.set_element_resInfo(resInf) 69 70 attrlist=[] 71 72 for k,v in attributes: 73 resAttr=response.new_resAttribute() 74 resAttr.set_element_key(k) 75 resAttr.set_element_value(v) 76 attrlist.append(resAttr) 77 response.set_element_resAttribute(attrlist) 78 79 return request,response 80 81 82 83 50 84 if 1: 51 85 if len(sys.argv) < 2:
Note:
See TracChangeset
for help on using the changeset viewer.