#NEWLINE# def info( self , ddoc = None ) : #NEWLINE# #INDENT# "Return information about the database or design document as a\n        dictionary.\n\n        Without an argument, returns database information. With an argument,\n        return information for the given design document.\n\n        The returned dictionary exactly corresponds to the JSON response to\n        a ``GET`` request on the database or design document's info URI.\n\n        :return: a dictionary of database properties\n        :rtype: ``dict``\n        :since: 0.4\n        " #NEWLINE# if ( ddoc is not None ) : #NEWLINE# #INDENT# ( _ , _ , data ) = self . resource ( '_design' , ddoc , '_info' ) . get_json ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( _ , _ , data ) = self . resource . get_json ( ) #NEWLINE# self . _name = data [ 'db_name' ] #NEWLINE# #UNINDENT# return data