[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow - stateful.py:1.12

Ulrich Eck ueck@net-labs.de
Thu, 10 Apr 2003 17:35:55 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv30320

Modified Files:
	stateful.py 
Log Message:
added comment to permission field .. cannot make it optional nor supply a default value


=== Zope3/src/zope/app/interfaces/workflow/stateful.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/interfaces/workflow/stateful.py:1.11	Fri Mar 28 13:17:02 2003
+++ Zope3/src/zope/app/interfaces/workflow/stateful.py	Thu Apr 10 17:35:54 2003
@@ -85,8 +85,14 @@
                         transition can be fired or not.""",
         required=False)
 
+    # XXX cannot add a default value -> raises
+    # ComponentLookupError: Permissions
+    # required=False does not help as well
+    # so for now the permission needs to be set ttw
+    # till we found another solution
     permission = PermissionField(
-        title=u"The permission needed to fire the Transition.")
+        title=u"The permission needed to fire the Transition.",
+        required=True)
 
 
     triggerMode = TriggerModeField(