def get_document(self, document_id):
        """
        :param document_id: Document unique identifier.
        :returns: a dictionary containing the document content and
                  any associated metadata.
        """
        key = 'doc.%s.%s' % (self.name, decode(document_id))
        return decode_dict(self.db.hgetall(key))
def get_document ( self , document_id ) : key = 'doc.%s.%s' % ( self . name , decode ( document_id ) ) return decode_dict ( self . db . hgetall ( key ) )
:param document_id: Document unique identifier.
        :returns: a dictionary containing the document content and
                  any associated metadata.