#NEWLINE# def get_jid( jid ) : #NEWLINE# #INDENT# '\n    Get the document with a given JID.\n    ' #NEWLINE# options = _get_options ( ret = None ) #NEWLINE# _response = _request ( 'GET' , ( ( ( options [ 'url' ] + options [ 'db' ] ) + '/' ) + jid ) ) #NEWLINE# if ( 'error' in _response ) : #NEWLINE# #INDENT# log . error ( 'Unable to get JID "{0}" : "{1}"' . format ( jid , _response ) ) #NEWLINE# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# _response [ 'id' ] : _response , #NEWLINE# #UNINDENT# }