Beispiel #1
0
 def to_dict(self):
   obj = Integrater.to_dict(self)
   import inspect
   attributes = inspect.getmembers(self, lambda m:not(inspect.isroutine(m)))
   for a in attributes:
     if a[0].startswith('_xds_'):
       obj[a[0]] = a[1]
   return obj
Beispiel #2
0
    def to_dict(self):
        obj = Integrater.to_dict(self)

        attributes = inspect.getmembers(self,
                                        lambda m: not (inspect.isroutine(m)))
        for a in attributes:
            if a[0].startswith("_xds_"):
                obj[a[0]] = a[1]
        return obj