[B] server: fix initial data structure in session.transaction_data stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Mon, 28 Sep 2009 21:32:10 +0200
branchstable
changeset 3508 d9915224f9a5
parent 3502 9638213410e9
child 3509 711cff0a83dd
[B] server: fix initial data structure in session.transaction_data
server/hooks.py
--- a/server/hooks.py	Mon Sep 28 11:35:04 2009 +0200
+++ b/server/hooks.py	Mon Sep 28 21:32:10 2009 +0200
@@ -568,7 +568,7 @@
 def before_add_in_state(session, eidfrom, rtype, eidto):
     """check state apply, in case of direct in_state change using unsafe_execute
     """
-    nocheck = session.transaction_data.setdefault('skip-security', ())
+    nocheck = session.transaction_data.setdefault('skip-security', set())
     if (eidfrom, 'in_state', eidto) in nocheck:
         # state changed through TrInfo insertion, so we already know it's ok
         return