web/form.py
branchtls-sprint
changeset 1049 f8e92c2f3bef
parent 1048 2a93712a6f8b
child 1050 c9815bef16d7
equal deleted inserted replaced
1048:2a93712a6f8b 1049:f8e92c2f3bef
   910         return self.req.property_value('ui.default-text-format')
   910         return self.req.property_value('ui.default-text-format')
   911 
   911 
   912     def form_field_entity_value(self, field, default_initial=True):
   912     def form_field_entity_value(self, field, default_initial=True):
   913         attr = field.name 
   913         attr = field.name 
   914         if field.role == 'object':
   914         if field.role == 'object':
   915             attr += '_object'
   915             attr = 'reverse_' + attr
   916         else:
   916         else:
   917             attrtype = self.entity.e_schema.destination(attr)
   917             attrtype = self.entity.e_schema.destination(attr)
   918             if attrtype == 'Password':
   918             if attrtype == 'Password':
   919                 return self.entity.has_eid() and INTERNAL_FIELD_VALUE or ''
   919                 return self.entity.has_eid() and INTERNAL_FIELD_VALUE or ''
   920             if attrtype == 'Bytes':
   920             if attrtype == 'Bytes':