# HG changeset patch # User Sylvain Thénault # Date 1264582835 -3600 # Node ID e50b71c0dd871007798612f00cfd2418d2c67823 # Parent b98fbca17e9e4a46bd955ef74df19144c16cebe2 cleanup diff -r b98fbca17e9e -r e50b71c0dd87 mixins.py --- a/mixins.py Wed Jan 27 10:00:19 2010 +0100 +++ b/mixins.py Wed Jan 27 10:00:35 2010 +0100 @@ -50,7 +50,7 @@ entities=entities) if entities: return [e for e in res if e.e_schema == self.e_schema] - return res.filtered_rset(lambda x: x.e_schema == self.e_schema, self.cw_col) + return res.filtered_rset(lambda x: x.e_schema is self.e_schema, self.cw_col) def iterchildren(self, _done=None): if _done is None: diff -r b98fbca17e9e -r e50b71c0dd87 web/formfields.py --- a/web/formfields.py Wed Jan 27 10:00:19 2010 +0100 +++ b/web/formfields.py Wed Jan 27 10:00:35 2010 +0100 @@ -336,7 +336,7 @@ return True except UnmodifiedField: return False - if form.edited_entity.has_eid() and previous_value == new_value: + if previous_value == new_value: return False # not modified return True return False @@ -751,6 +751,7 @@ class RelationField(Field): + """the relation field to edit non final relations of an entity""" @staticmethod def fromcardinality(card, **kwargs):