def _client_data(self, client):
        """ Returns a dict that represents the client specified
            Keys: obj, id, url, name
        """
        data = {}
        if client:
            data['obj'] = client
            data['id'] = client.id
            data['url'] = client.absolute_url()
            data['name'] = to_utf8(client.getName())
        return data
def _client_data ( self , client ) : data = { } if client : data [ 'obj' ] = client data [ 'id' ] = client . id data [ 'url' ] = client . absolute_url ( ) data [ 'name' ] = to_utf8 ( client . getName ( ) ) return data
Returns a dict that represents the client specified
            Keys: obj, id, url, name