[Zope-CVS] CVS: Packages3/workflow/browser/stateful - __init__.py:1.1 configure.zcml:1.1 definition.py:1.1 definition_index.pt:1.1 definition_states.pt:1.1 definition_transitions.pt:1.1

Ulrich Eck ueck@net-labs.de
Thu, 6 Feb 2003 17:03:07 -0500


Update of /cvs-repository/Packages3/workflow/browser/stateful
In directory cvs.zope.org:/tmp/cvs-serv23752/browser/stateful

Added Files:
	__init__.py configure.zcml definition.py definition_index.pt 
	definition_states.pt definition_transitions.pt 
Log Message:
Next round in Stateful workflow implementation:
- Transitions:
  + Conditions based on TALES Expressions work
  - Permissions are implemented but tests do not work yet (tests disabled)
- Instance:
  + Relevant-Data based on Schema basically works (schema written as persistent module)
  - Permissions for dataaccess not yet implemented
- BrowserViews:
 - basic setup for ManagementInterface made, no functionality yet
- extensive tests for the instance written.


=== Added File Packages3/workflow/browser/stateful/__init__.py ===


=== Added File Packages3/workflow/browser/stateful/configure.zcml ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:browser='http://namespaces.zope.org/browser'>


<!-- Stateful Workflow Process Definition -->

<browser:menuItem
  menu="add_component"
  for="zope.app.interfaces.container.IAdding"
  action="StatefulProcessDefinition"
  title='Stateful Process Definition'
  description="A stateful workflow process definition" />


<browser:pages
  for="zope.app.interfaces.workflow.stateful.IStatefulProcessDefinition"
  class="zope.app.browser.workflow.stateful.definition.StatefulProcessDefinitionView"
  permission="zope.ManageServices">

  <browser:page name="index.html" template="definition_index.pt" />
  <browser:page name="states.html" template="definition_states.pt" />
  <browser:page name="transitions.html" template="definition_transitions.pt" />

</browser:pages>

<browser:menuItem
  for="zope.app.interfaces.workflow.stateful.IStatefulProcessDefinition"
  menu="zmi_views"
  title="Overview"
  action="index.html"
  />

<browser:menuItem
  for="zope.app.interfaces.workflow.stateful.IStatefulProcessDefinition"
  menu="zmi_views"
  title="States"
  action="states.html"
  />

<browser:menuItem
  for="zope.app.interfaces.workflow.stateful.IStatefulProcessDefinition"
  menu="zmi_views"
  title="Transitions"
  action="transitions.html"
  />


</zopeConfigure>


=== Added File Packages3/workflow/browser/stateful/definition.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""ProcessDefinition configuration adding view
 
$Id: definition.py,v 1.1 2003/02/06 22:03:06 jack-e Exp $
"""
__metaclass__ = type
 
from zope.component import getServiceManager
from zope.publisher.browser import BrowserView
from zope.app.form.utility import setUpWidgets, getWidgetsDataForContent
from zope.app.interfaces.workflow.stateful import IStatefulProcessDefinition
 
class StatefulProcessDefinitionView(BrowserView):
 
    def getName(self):
        return """I'm a stateful ProcessInstance"""


=== Added File Packages3/workflow/browser/stateful/definition_index.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title>ProcessDefinition</title>
</head>
<body>
 
  <div metal:fill-slot="body">

  <p>ProcessDefinition: <tal:block tal:replace="view/getName" /></p>
 
  </div>
 
</body>
</html>

=== Added File Packages3/workflow/browser/stateful/definition_states.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title>ProcessDefinition States</title>
</head>
<body>
 
  <div metal:fill-slot="body">

  states
 
  </div>
 
</body>
</html>

=== Added File Packages3/workflow/browser/stateful/definition_transitions.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title>ProcessDefinition Transitions</title>
</head>
<body>
 
  <div metal:fill-slot="body">

  transitions
 
  </div>
 
</body>
</html>