#NEWLINE# def get_project( self , id ) : #NEWLINE# #INDENT# '\n        Get one project based on the numerical ID or short identifier\n        GET $base/projects/$id.xml\n        ' #NEWLINE# if ( type ( id ) . __name__ == 'int' ) : #NEWLINE# #INDENT# url = ( '%s/projects/%d.xml' % ( self . base , id ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = ( '%s/projects/%s.xml' % ( self . base , id ) ) #NEWLINE# #UNINDENT# ( response , content ) = self . _request ( url , 'GET' ) #NEWLINE# project = RedmineProject ( None ) #NEWLINE# project . parse ( content ) #NEWLINE# return project