(self, obj, metadata)
return obj
Transform an Object.
Transform an Object.
Transform an Object .
def transform(self, obj, metadata):
        """Transform an Object."""
        if isinstance(obj, Object):
            method = 'transform_' + obj.__class__.__name__
            transformer = getattr(self, method, self.transform_Object)
            new_obj = transformer(obj, metadata)
            if new_obj is not None and obj is not new_obj:
                obj = new_obj
        return obj
def transform ( self , obj , metadata ) : if isinstance ( obj , Object ) : method = 'transform_' + obj . __class__ . __name__ transformer = getattr ( self , method , self . transform_Object ) new_obj = transformer ( obj , metadata ) if new_obj is not None and obj is not new_obj : obj = new_obj return obj