# HG changeset patch # User Sylvain Thénault # Date 1284737117 -7200 # Node ID c35b2ebeb3c9123375856e3804c8d4186101de96 # Parent c827fa795a6b9449eb0df8b95f65492ad68d0713 [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. diff -r c827fa795a6b -r c35b2ebeb3c9 server/sqlutils.py --- 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)