#NEWLINE# def _get_view_url( self , admin , url ) : #NEWLINE# #INDENT# '\n            Generate URL for the view. Override to change default behavior.\n        ' #NEWLINE# if ( url is None ) : #NEWLINE# #INDENT# if ( admin . url != '/' ) : #NEWLINE# #INDENT# url = ( '%s/%s' % ( admin . url , admin . endpoint ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self == admin . index_view ) : #NEWLINE# #INDENT# url = '/' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = ( '/%s' % self . endpoint ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not url . startswith ( '/' ) ) : #NEWLINE# #INDENT# url = ( '%s/%s' % ( admin . url , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# return url