#NEWLINE# def __call__( self , item , context = None ) : #NEWLINE# #INDENT# date_val = transform_date ( self . _date_expression ( item , context ) ) #NEWLINE# int_val = transform_int ( self . _count_expression ( item , context ) ) #NEWLINE# if ( ( date_val is not None ) and ( int_val is not None ) ) : #NEWLINE# #INDENT# return ( date_val + datetime . timedelta ( days = int_val ) ) #NEWLINE# #UNINDENT# return None