#NEWLINE# def get_link_url( self , datum = None ) : #NEWLINE# #INDENT# if getattr ( datum , 'container' , datum ) : #NEWLINE# #INDENT# container_name = http . urlquote ( datum . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# container_name = self . table . kwargs [ 'container_name' ] #NEWLINE# #UNINDENT# subfolders = self . table . kwargs . get ( 'subfolder_path' , '' ) #NEWLINE# args = ( bit for bit in ( container_name , subfolders ) if bit ) #NEWLINE# return reverse ( self . url , args = container_name )