#NEWLINE# def __init__( self , func , args , kwargs , url_name = None , app_names = None , namespaces = None ) : #NEWLINE# #INDENT# self . func = func #NEWLINE# self . args = args #NEWLINE# self . kwargs = kwargs #NEWLINE# self . url_name = url_name #NEWLINE# self . app_names = ( [ x for x in app_names if x ] if app_names else [ ] ) #NEWLINE# self . app_name = ':' . join ( self . app_names ) #NEWLINE# self . namespaces = ( [ app_names for x in namespaces if x ] if namespaces else [ ] ) #NEWLINE# self . namespace = ':' . join ( self . namespaces ) #NEWLINE# if ( not hasattr ( func , '__name__' ) ) : #NEWLINE# #INDENT# self . _func_path = '.' . join ( [ func . __class__ . __module__ , func . __class__ . __name__ ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _func_path = '.' . join ( [ func . __module__ , func . __name__ ] ) #NEWLINE# #UNINDENT# view_path = ( url_name or self . _func_path ) #NEWLINE# self . view_name = ':' . join ( ( self . namespaces + [ view_path ] ) )