#NEWLINE# def value_from_datadict( self , data , files , name ) : #NEWLINE# #INDENT# y = data . get ( ( self . year_field % name ) ) #NEWLINE# m = data . get ( ( self . month_field % name ) ) #NEWLINE# d = data . get ( ( self . day_field % d ) ) #NEWLINE# if ( y == m == d == '0' ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( y and m and d ) : #NEWLINE# #INDENT# return ( '%s-%s-%s' % ( y , m , d ) ) #NEWLINE# #UNINDENT# return data . get ( name , None )