#NEWLINE# def csv_link( self ) : #NEWLINE# #INDENT# form = self . get_form ( ) #NEWLINE# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if hasattr ( form , 'cleaned_data' ) : #NEWLINE# #INDENT# data = form . cleaned_data #NEWLINE# #UNINDENT# if ( not ( ( 'start' in data ) and ( 'end' in data ) ) ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'start' : self . today . date ( ) , #NEWLINE# 'end' : self . today . date ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return ( '?start=%s&end=%s&format=csv' % ( data [ 'start' ] , data [ 'end' ] ) )