Changes between Version 6 and Version 7 of Jsonrpc


Ignore:
Timestamp:
Jun 5, 2009, 9:33:07 AM (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Jsonrpc

    v6 v7  
    131131    def generate_smd(self):
    132132
    133         self.smd = {
     133        smd = {
    134134            "serviceType": "JSON-RPC",
    135135            "serviceURL": self.instance.url,
     
    138138
    139139        if self.report_methods:
    140             self.smd["methods"] += [
     140            smd["methods"] = [
    141141                {"name": method, "parameters": getattr(self.instance, method).get_args()} \
    142142                for method in self.get_public_methods()
    143143            ]
    144144
    145         return simplejson.dumps(self.smd)
     145        return simplejson.dumps(smd)
    146146 
    147147    def dispatch(self, method, params):
Back to Top