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

Jim Fulton jim at zope.com
Sun Sep 21 13:32:27 EDT 2003


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

Modified Files:
	stateful.py 
Log Message:
No-longer use context wrappers.


=== Zope3/src/zope/app/interfaces/workflow/stateful.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/interfaces/workflow/stateful.py:1.19	Fri Aug 15 20:43:37 2003
+++ Zope3/src/zope/app/interfaces/workflow/stateful.py	Sun Sep 21 13:31:56 2003
@@ -17,7 +17,6 @@
 """
 
 import zope.schema
-from zope.context import ContextProperty
 from zope.app.security.permission import PermissionField
 
 from zope.interface import Interface, Attribute
@@ -101,7 +100,7 @@
         pd = self.context.getProcessDefinition()
         return pd.getStateNames()
 
-    allowed_values = ContextProperty(__allowed)
+    allowed_values = property(__allowed)
 
 
 class TriggerModeField(zope.schema.TextLine):
@@ -110,7 +109,7 @@
     def __allowed(self):
         return [MANUAL, AUTOMATIC]
 
-    allowed_values = ContextProperty(__allowed)
+    allowed_values = property(__allowed)
 
 
 class ITransition(Interface):




More information about the Zope3-Checkins mailing list