[Zope-CVS] CVS: Packages3/workflow/browser - importexport_index.pt:1.1 configure.zcml:1.9 definition.py:1.6
Ulrich Eck
ueck@net-labs.de
Wed, 26 Mar 2003 12:44:08 -0500
Update of /cvs-repository/Packages3/workflow/browser
In directory cvs.zope.org:/tmp/cvs-serv13635/browser
Modified Files:
configure.zcml definition.py
Added Files:
importexport_index.pt
Log Message:
first round of checkin of our sprint work (some test are missing)
=== Added File Packages3/workflow/browser/importexport_index.pt ===
<html metal:use-macro="context/@@standard_macros/page">
<body>
<div metal:fill-slot="body">
<p>Import / Export ProcessDefinitions:</p>
<span tal:content="view/doExport" />
</div>
</body>
</html>
=== Packages3/workflow/browser/configure.zcml 1.8 => 1.9 ===
--- Packages3/workflow/browser/configure.zcml:1.8 Wed Mar 26 10:24:26 2003
+++ Packages3/workflow/browser/configure.zcml Wed Mar 26 12:43:37 2003
@@ -35,17 +35,6 @@
menu="zmi_views" title="Configurations"
/>
-<!--
-<browser:page
- for="zope.app.interfaces.workflow.IProcessDefinition"
- name="importexport.html"
- template="importexport_index.pt"
- class=".definition.ImportExportView"
- permission="zope.workflow.ManageProcessDefinitions"
- menu="zmi_views" title="Import/Export"
- />
--->
-
<browser:addform
for="zope.app.interfaces.workflow.IProcessDefinition"
name="addConfiguration.html"
@@ -68,6 +57,15 @@
/>
+<browser:page
+ for="zope.app.interfaces.workflow.IProcessDefinition"
+ name="importexport.html"
+ template="importexport_index.pt"
+ class=".definition.ImportExportView"
+ permission="zope.workflow.ManageProcessDefinitions"
+ menu="zmi_views" title="Import/Export"
+ />
+
<!-- ProcessDefinitionElementContainer -->
@@ -77,14 +75,21 @@
/>
<browser:pages
- for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
- permission="zope.workflow.ManageProcessDefinitions"
- class="zope.app.browser.container.contents.Contents">
+ for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
+ permission="zope.workflow.ManageProcessDefinitions"
+ class="zope.app.browser.container.contents.Contents">
+ >
+
+ <browser:page name="contents.html" attribute="contents" />
+ <browser:page name="removeObjects.html" attribute="removeObjects" />
+ <browser:page name="cutObjects.html" attribute="cutObjects" />
+ <browser:page name="copyObjects.html" attribute="copyObjects" />
+ <browser:page name="pasteObjects.html" attribute="pasteObjects" />
+ <browser:page name="renameObjects.html" attribute="renameObjects" />
+ <browser:page name="rename.html" attribute="rename" />
- <browser:page name="contents.html" attribute="contents" />
- <browser:page name="removeObjects.html" attribute="removeObjects" />
+ </browser:pages>
-</browser:pages>
<browser:menuItem
for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
@@ -93,8 +98,14 @@
action="contents.html"
/>
+<adapter factory="zope.app.container.zopecontainer.ZopeContainerAdapter"
+ provides="zope.app.interfaces.container.IZopeContainer"
+ for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
+ />
+
<!-- ProcessInstanceContainerAdaptable
+ XXX Commented Out .. is just a demo
<browser:pages
for="zope.app.interfaces.workflow.IProcessInstanceContainerAdaptable"
permission="zope.workflow.UseProcessInstances"
=== Packages3/workflow/browser/definition.py 1.5 => 1.6 ===
--- Packages3/workflow/browser/definition.py:1.5 Wed Mar 26 10:24:26 2003
+++ Packages3/workflow/browser/definition.py Wed Mar 26 12:43:37 2003
@@ -25,7 +25,6 @@
-
class UseConfiguration(BrowserView):
"""View for displaying the configurations for a process definition
"""
@@ -46,18 +45,20 @@
})
return result
+
class ProcessDefinitionView(BrowserView):
def getName(self):
return """I'm a dummy ProcessInstance"""
+
class ImportExportView(BrowserView):
def doExport(self):
- return self._getUtil().exportProcessDefinition(self.context)
+ return self._getUtil().exportProcessDefinition(self.context, self.context)
def doImport(self, data):
- return self._getUtil().importProcessDefinition(data)
+ return self._getUtil().importProcessDefinition(self.context, data)
def _getUtil(self):
return getUtility(self.context, IProcessDefinitionImportExport)