#NEWLINE# def get_url( self ) : #NEWLINE# #INDENT# "Return the URL used when clicking the item.\n\n        By default, this builds a URL to the parent datagrid using\n        the ``view_id`` and ``view_args`` attributes. If they are not\n        set, then the item won't be clickable.\n        " #NEWLINE# if ( ( not self . view_id ) and ( not self . view_args ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if self . view_args : #NEWLINE# #INDENT# url_args = self . view_args . copy ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url_args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if self . view_id : #NEWLINE# #INDENT# url_args [ 'view' ] = self . view_id #NEWLINE# #UNINDENT# return ( '%s?%s' % ( self . datagrid . request . path , urlencode ( url_args ) ) )