#NEWLINE# def get_path( self , api_info ) : #NEWLINE# #INDENT# "Get the path portion of the URL to the method (for RESTful methods).\n\n    Request path can be specified in the method, and it could have a base\n    path prepended to it.\n\n    Args:\n      api_info: API information for this API, possibly including a base path.\n        This is the api_info property on the class that's been annotated for\n        this API.\n\n    Returns:\n      This method's request path (not including the http://.../_ah/api/ prefix).\n\n    Raises:\n      ApiConfigurationError: If the path isn't properly formatted.\n    " #NEWLINE# path = ( self . __path or '' ) #NEWLINE# if ( path and ( path [ 0 ] == '/' ) ) : #NEWLINE# #INDENT# path = path [ 1 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if api_info . path : #NEWLINE# #INDENT# path = ( '%s%s%s' % ( api_info . path , ( '/' if path else '' ) , path ) ) #NEWLINE# #UNINDENT# #UNINDENT# for part in path . split ( '/' ) : #NEWLINE# #INDENT# if ( part and ( '{' in part ) and ( '}' in path ) ) : #NEWLINE# #INDENT# if ( re . match ( '^{[^{}]+}$' , part ) is None ) : #NEWLINE# #INDENT# raise ApiConfigurationError ( ( 'Invalid path segment: %s (part of %s)' % ( part , path ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return path