Changes between Version 6 and Version 7 of Jsonrpc
- Timestamp:
- Jun 5, 2009, 9:33:07 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Jsonrpc
v6 v7 131 131 def generate_smd(self): 132 132 133 s elf.smd = {133 smd = { 134 134 "serviceType": "JSON-RPC", 135 135 "serviceURL": self.instance.url, … … 138 138 139 139 if self.report_methods: 140 s elf.smd["methods"] += [140 smd["methods"] = [ 141 141 {"name": method, "parameters": getattr(self.instance, method).get_args()} \ 142 142 for method in self.get_public_methods() 143 143 ] 144 144 145 return simplejson.dumps(s elf.smd)145 return simplejson.dumps(smd) 146 146 147 147 def dispatch(self, method, params):