def project_time_week(row):
 try:
  thisdate = row['project_time.date']
 except AttributeError:
  return current.messages['NONE']
 if (not thisdate):
  return current.messages['NONE']
 day = thisdate.date()
 monday = (day - datetime.timedelta(days=day.weekday()))
 return monday

def project_time_week ( row ) : try : thisdate = row [ 'project_time.date' ] except AttributeError : return current . messages [ 'NONE' ] if ( not thisdate ) : return current . messages [ 'NONE' ] day = thisdate . date ( ) monday = ( day - datetime . timedelta ( days = day . weekday ( ) ) ) return monday
virtual field for project_time - returns the date of the monday of this entry .