web/views/editcontroller.py
branchstable
changeset 1940 2565aae48d48
parent 1802 d628defebc17
child 1948 887ed691c635
equal deleted inserted replaced
1939:67e7379edd96 1940:2565aae48d48
   226                     if entity.e_schema.has_subject_relation('name') \
   226                     if entity.e_schema.has_subject_relation('name') \
   227                            and not formparams.get('name'):
   227                            and not formparams.get('name'):
   228                         formparams['name'] = value[0]
   228                         formparams['name'] = value[0]
   229                         self.relations.append('X name %(name)s')
   229                         self.relations.append('X name %(name)s')
   230                     value = val
   230                     value = val
       
   231             else:
       
   232                 # no specified value, skip
       
   233                 return
   231         elif value is not None:
   234         elif value is not None:
   232             if attrtype in ('Date', 'Datetime', 'Time'):
   235             if attrtype in ('Date', 'Datetime', 'Time'):
   233                 try:
   236                 try:
   234                     value = self.parse_datetime(value, attrtype)
   237                     value = self.parse_datetime(value, attrtype)
   235                 except ValueError:
   238                 except ValueError: