Changes between Version 10 and Version 11 of Jsonrpc
- Timestamp:
- May 27, 2010, 1:41:04 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Jsonrpc
v10 v11 35 35 def find_person(attribs): 36 36 37 filters = {} 38 for key in attribs.keys(): 39 if key in ("first_name", "last_name"): 40 filters[key] = attribs[key] 37 filters = dict((key, val) for key, val in attribs.items() 38 if key in ("first_name", "last_name")) 41 39 42 40 return [ … … 108 106 def get_args(self): 109 107 from inspect import getargspec 110 return [ a for a in getargspec(self.method).args if (a != "self")]108 return [ a for a in getargspec(self.method).args if a != "self" ] 111 109 112 110 class JsonRpc(object): … … 125 123 return [ 126 124 m for m in dir(self.instance) if \ 127 (getattr(self.instance, m).__class__.__name__ == "publicmethod")and \128 (getattr(self.instance, m).__public__ == True)125 getattr(self.instance, m).__class__.__name__ == "publicmethod" and \ 126 getattr(self.instance, m).__public__ == True 129 127 ] 130 128 … … 236 234 data = simplejson.loads(request.raw_post_data) 237 235 # Altered to forward the request parameter when a member method 238 # is invo cated <julien@pimentech.net>236 # is invoked <julien@pimentech.net> 239 237 id, method, params = data["id"],data["method"],[request,]+data["params"] 240 238 if method in self.method_map: