# HG changeset patch # User Sylvain Thénault # Date 1317199001 -7200 # Node ID f475a34d0ddcde055b6ac17869f60e663a39bcdd # Parent 9aae456abab585ca360ef5587f237868ca792142 [sync schema hooks] pylint fixes have broken hasattr test diff -r 9aae456abab5 -r f475a34d0ddc hooks/syncschema.py --- a/hooks/syncschema.py Wed Sep 28 09:27:42 2011 +0200 +++ b/hooks/syncschema.py Wed Sep 28 10:36:41 2011 +0200 @@ -804,7 +804,7 @@ self.warning('no schema for %s', self.eid) return perms = list(erschema.action_permissions(self.action)) - if hasattr(self, 'group_eid'): + if self.group_eid is not None: perm = self.session.entity_from_eid(self.group_eid).name else: perm = erschema.rql_expression(self.expr) @@ -838,7 +838,7 @@ self.action in ('delete', 'add'): # XXX 3.6.1 migration return perms = list(erschema.action_permissions(self.action)) - if hasattr(self, 'group_eid'): + if self.group_eid is not None: perm = self.session.entity_from_eid(self.group_eid).name else: perm = erschema.rql_expression(self.expr)