server/sqlutils.py
branchstable
changeset 6284 c35b2ebeb3c9
parent 5768 1e73a466aa69
child 6333 e3994fcc21c3
equal deleted inserted replaced
6283:c827fa795a6b 6284:c35b2ebeb3c9
   260         """
   260         """
   261         attrs = {}
   261         attrs = {}
   262         eschema = entity.e_schema
   262         eschema = entity.e_schema
   263         for attr in entity.edited_attributes:
   263         for attr in entity.edited_attributes:
   264             value = entity[attr]
   264             value = entity[attr]
   265             rschema = eschema.subjrels[attr]
   265             if value is not None and eschema.subjrels[attr].final:
   266             if rschema.final:
       
   267                 atype = str(entity.e_schema.destination(attr))
   266                 atype = str(entity.e_schema.destination(attr))
   268                 if atype == 'Boolean':
   267                 if atype == 'Boolean':
   269                     value = self.dbhelper.boolean_value(value)
   268                     value = self.dbhelper.boolean_value(value)
   270                 elif atype == 'Password':
   269                 elif atype == 'Password':
   271                     # if value is a Binary instance, this mean we got it
   270                     # if value is a Binary instance, this mean we got it