[Zope-CVS] CVS: Packages3/workflow/browser - configure.zcml:1.7 definition.py:1.4
Ulrich Eck
ueck@net-labs.de
Sat, 22 Mar 2003 13:17:35 -0500
Update of /cvs-repository/Packages3/workflow/browser
In directory cvs.zope.org:/tmp/cvs-serv23252/browser
Modified Files:
configure.zcml definition.py
Log Message:
updates for current configuration changes
=== Packages3/workflow/browser/configure.zcml 1.6 => 1.7 ===
--- Packages3/workflow/browser/configure.zcml:1.6 Wed Mar 19 12:00:42 2003
+++ Packages3/workflow/browser/configure.zcml Sat Mar 22 13:17:35 2003
@@ -8,7 +8,7 @@
for="zope.app.interfaces.workflow.IWorkflowService"
name="index.html"
template="workflows.pt"
- class="zope.app.browser.services.namecomponentconfigurableview.NameComponentConfigurableView"
+ class="zope.app.browser.services.configuration.NameComponentConfigurableView"
permission="zope.ManageServices"
/>
@@ -40,7 +40,7 @@
for="zope.app.interfaces.workflow.IProcessDefinition"
name="addConfiguration.html"
schema="zope.app.interfaces.workflow.IProcessDefinitionConfiguration"
- class=".definition.AddProcessDefinitionConfiguration"
+ class="zope.app.browser.services.configuration.AddComponentConfiguration"
permission="zope.workflow.ManageProcessDefinitions"
content_factory="zope.app.workflow.service.ProcessDefinitionConfiguration"
arguments="name componentPath"
=== Packages3/workflow/browser/definition.py 1.3 => 1.4 ===
--- Packages3/workflow/browser/definition.py:1.3 Wed Mar 19 12:00:42 2003
+++ Packages3/workflow/browser/definition.py Sat Mar 22 13:17:35 2003
@@ -19,17 +19,8 @@
from zope.component import getAdapter, getView
from zope.publisher.browser import BrowserView
-
-from zope.proxy.context import getWrapperContainer
-from zope.app.traversing import traverse, getPhysicalPathString
-from zope.app.form.widget import CustomWidget
-from zope.app.browser.services.field import ComponentPathDisplayWidget
+from zope.app.traversing import traverse
from zope.app.interfaces.services.configuration import IUseConfiguration
-from zope.app.interfaces.container import IZopeContainer
-
-from zope.app.interfaces.workflow import IProcessDefinitionConfiguration
-from zope.app.interfaces.workflow import IProcessDefinition
-from zope.app.workflow.service import ProcessDefinitionConfiguration
class UseConfiguration(BrowserView):
@@ -51,34 +42,6 @@
'status': config.status,
})
return result
-
-
-
-class AddProcessDefinitionConfiguration(BrowserView):
-
-
- componentPath = CustomWidget(ComponentPathDisplayWidget)
-
- def beforeUpdateHook(self):
- path = getPhysicalPathString(self.context)
- self.request.form[self.componentPath.name] = path
-
-
- def add(self, content):
- # get the configuration manager for this folder
- configure = traverse(getWrapperContainer(self.context), 'configure')
- container = getAdapter(configure, IZopeContainer)
-
- # Add the configuration
- key = container.setObject("", content)
-
- return container[key]
-
- def nextURL(self):
- return "@@useConfiguration.html"
-
-
-
class ProcessDefinitionView(BrowserView):