def _to_json ( self ) : return dict ( ( ( k , v ) for k , v in self . __dict__ . iteritems ( ) if k != 'server' ) )
python access object properties as dict
Gets a dict of this object s properties so that it can be used to send a dump to the client
def _to_json(self):
        """ Gets a dict of this object's properties so that it can be used to send a dump to the client """
        return dict(( (k, v) for k, v in self.__dict__.iteritems() if k != 'server'))