don't use setdefault with a tuple as value, a set is expected
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Dec 2009 17:10:01 +0100
changeset 4088 23ce2b3fb03d
parent 4087 2b8bc4cfd6ee
child 4089 ff92c7d692bf
don't use setdefault with a tuple as value, a set is expected
hooks/workflow.py
--- a/hooks/workflow.py	Wed Dec 09 16:33:32 2009 +0100
+++ b/hooks/workflow.py	Wed Dec 09 17:10:01 2009 +0100
@@ -276,7 +276,7 @@
 
     def __call__(self):
         session = self._cw
-        nocheck = session.transaction_data.setdefault('skip-security', ())
+        nocheck = session.transaction_data.get('skip-security', ())
         if (self.eidfrom, 'in_state', self.eidto) in nocheck:
             # state changed through TrInfo insertion, so we already know it's ok
             return