#NEWLINE# def documents( self ) : #NEWLINE# #INDENT# '\n            Returns all documents of this collection.\n\n            :returns Document list\n        ' #NEWLINE# document_list = [ ] #NEWLINE# document_uri_list = self . api . document . get ( collection = self . name ) [ 'documents' ] #NEWLINE# for document_uri in document_uri_list : #NEWLINE# #INDENT# splitted_uri = document_uri . split ( '/' ) #NEWLINE# document_key = splitted_uri [ ( - 1 ) ] #NEWLINE# document_id = ( '%s/%s' % ( self . name , document_key ) ) #NEWLINE# doc = Document ( id = document_id , key = document_key , collection = document_key , api = self . api ) #NEWLINE# document_list . append ( doc ) #NEWLINE# #UNINDENT# return document_list