[Zope-CVS] CVS: Packages3/workflow - configure.zcml:1.3 definition.py:1.3
Ulrich Eck
ueck@net-labs.de
Fri, 7 Feb 2003 10:29:56 -0500
Update of /cvs-repository/Packages3/workflow
In directory cvs.zope.org:/tmp/cvs-serv17461
Modified Files:
configure.zcml definition.py
Log Message:
next steps towards a usable Stateful Workflow:
- Schema for ProcessDefinition, State, Transition
- views for TTW-Editing
- another try to get the transition-permissions working (still not done)
- configure optimization
=== Packages3/workflow/configure.zcml 1.2 => 1.3 ===
--- Packages3/workflow/configure.zcml:1.2 Thu Feb 6 17:03:05 2003
+++ Packages3/workflow/configure.zcml Fri Feb 7 10:29:21 2003
@@ -2,6 +2,23 @@
xmlns='http://namespaces.zope.org/zope'
xmlns:service='http://namespaces.zope.org/service'>
+
+<!-- Workflow Permissions -->
+
+<permission
+ id="zope.workflow.ManageProcessDefinitions"
+ title="Manage Workflow ProcessDefinitions" />
+
+<permission
+ id="zope.workflow.CreateProcessInstances"
+ title="Create Workflow ProcessInstances" />
+
+<permission
+ id="zope.workflow.UseProcessInstances"
+ title="Use Workflow ProcessInstances" />
+
+
+
<!-- Workflow Service -->
<content class="zope.app.workflow.service.WorkflowService">
=== Packages3/workflow/definition.py 1.2 => 1.3 ===
--- Packages3/workflow/definition.py:1.2 Wed Feb 5 20:09:29 2003
+++ Packages3/workflow/definition.py Fri Feb 7 10:29:21 2003
@@ -20,7 +20,7 @@
from types import StringTypes
from persistence import Persistent
from persistence.dict import PersistentDict
-from zope.proxy.context import ContextAware
+from zope.proxy.context import ContextAware, getWrapperContainer
from zope.app.interfaces.workflow \
import IProcessDefinition, IProcessDefinitionElementContainer
@@ -111,3 +111,7 @@
def __delitem__(self, key):
'''See interface IProcessDefinitionElementContainer'''
del self.__data[key]
+
+
+ def getProcessDefinition(self):
+ return getWrapperContainer(self)