commit bc4cad9df20a2b7022c8e2dd2d0af5fb374cc806 Author: J. Fernando Sánchez Date: Fri Feb 19 10:14:06 2016 +0100 diff --git a/*scratch*.py b/*scratch*.py new file mode 100644 index 0000000..86a09db --- /dev/null +++ b/*scratch*.py @@ -0,0 +1,9 @@ +cls = self.__class__ +property_names=[] + +for p in dir(cls): + if isinstance(getattr(cls, p), property): + property_names.append(p) + logging.debug('property names: {}'.format(property_names)) +for p in property_names: + ser['@%s' % p] = getattr(cls, p).fget(self) \ No newline at end of file