[repo/sql] don't do anything when value is None. This will avoid None to be turned into False in the case of a boolean for instance.
--- a/server/sqlutils.py Fri Sep 17 16:54:57 2010 +0200
+++ b/server/sqlutils.py Fri Sep 17 17:25:17 2010 +0200
@@ -262,8 +262,7 @@
eschema = entity.e_schema
for attr in entity.edited_attributes:
value = entity[attr]
- rschema = eschema.subjrels[attr]
- if rschema.final:
+ if value is not None and eschema.subjrels[attr].final:
atype = str(entity.e_schema.destination(attr))
if atype == 'Boolean':
value = self.dbhelper.boolean_value(value)