[Zope-CVS] CVS: Packages3/workflow - notes.txt:1.1 service.py:1.7
Ulrich Eck
ueck@net-labs.de
Sat, 22 Mar 2003 13:18:05 -0500
Update of /cvs-repository/Packages3/workflow
In directory cvs.zope.org:/tmp/cvs-serv23252
Modified Files:
service.py
Added Files:
notes.txt
Log Message:
updates for current configuration changes
=== Added File Packages3/workflow/notes.txt ===
ToDo:
Stateful PI:
- state-changes/data-changes need to fire events
- sci needs probably readonly acccess to the "content-object" it applies to
Stateful PD:
- permissions for wf-relevant data fields
- better initialization of wf-relevant data (e.g. missing schema)
ContentWorkflowConfigurationService (CWCS):
- replace content-workflows-utility
- is subscriber to ObjectCreatedEvents,
subscribes only when Service is made active (IBindingAware)
- has configurations ContentType (Interface) -> PD-Names
- supplies convinience methods for Component Developers
to operate on/with the ProcessInstances
(e.g. set/get Data, fire transitions, ...)
=== Packages3/workflow/service.py 1.6 => 1.7 ===
--- Packages3/workflow/service.py:1.6 Wed Mar 19 12:00:41 2003
+++ Packages3/workflow/service.py Sat Mar 22 13:17:34 2003
@@ -31,7 +31,7 @@
from zope.app.services.configuration import NamedComponentConfiguration
from zope.app.services.configuration import ConfigurationStatusProperty
from zope.app.interfaces.services.configuration import IUseConfiguration
-from zope.app.traversing import traverse, getPhysicalPathString
+from zope.app.traversing import traverse, getPath
from zope.app.interfaces.services.service import ISimpleService
from zope.app.interfaces.workflow import IProcessDefinitionConfiguration
@@ -131,7 +131,7 @@
container)
pd = configuration.getComponent()
adapter = getAdapter(pd, IUseConfiguration)
- adapter.addUsage(getPhysicalPathString(configuration))
+ adapter.addUsage(getPath(configuration))
def beforeDeleteHook(self, configuration, container):
@@ -141,6 +141,6 @@
"""
pd = configuration.getComponent()
adapter = getAdapter(pd, IUseConfiguration)
- adapter.removeUsage(getPhysicalPathString(configuration))
+ adapter.removeUsage(getPath(configuration))
super(ProcessDefinitionConfiguration, self).beforeDeleteHook(configuration,
container)