[Zope3-checkins] SVN: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_subscribers.py do the actula job of updating a given role mapping on the state

Julien Anguenot ja at nuxeo.com
Wed Oct 13 16:55:33 EDT 2004


Log message for revision 28126:
  do the actula job of updating a given role mapping on the state

Changed:
  A   Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_subscribers.py

-=-
Added: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_subscribers.py
===================================================================
--- Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_subscribers.py	2004-10-13 20:54:44 UTC (rev 28125)
+++ Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_subscribers.py	2004-10-13 20:55:32 UTC (rev 28126)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+"""State subscribers
+
+$Id:$
+"""
+
+def statePermisssionsRolesMappingUpdateSubscriber(event):
+    """Cope with permissions roles mapping update
+    """
+    sdef = event.object
+    mapping = event.mapping
+
+    # Full update
+    sdef.setPermissionsRolesMapping(mapping)



More information about the Zope3-Checkins mailing list