[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/workflow -
__init__.py:1.18.2.1 stateful.py:1.18.4.1
Sidnei da Silva
sidnei at x3ng.com.br
Wed Aug 13 11:42:49 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/interfaces/workflow
In directory cvs.zope.org:/tmp/cvs-serv8242/src/zope/app/interfaces/workflow
Modified Files:
Tag: dreamcatcher-ttwschema-branch
__init__.py stateful.py
Log Message:
Half-workiing schemaPermissions plus some whitespace here and there
=== Zope3/src/zope/app/interfaces/workflow/__init__.py 1.18 => 1.18.2.1 ===
--- Zope3/src/zope/app/interfaces/workflow/__init__.py:1.18 Thu Aug 7 20:14:44 2003
+++ Zope3/src/zope/app/interfaces/workflow/__init__.py Wed Aug 13 10:42:14 2003
@@ -27,7 +27,7 @@
class IWorkflowEvent(IEvent):
"""This event describes a generic event that is triggered by the workflow
- mechanism."""
+ mechanism."""
class IWorkflowService(Interface):
@@ -140,7 +140,7 @@
class IProcessDefinitionImportHandler(Interface):
"""Handler for Import of ProcessDefinitions."""
-
+
def canImport(context, data):
"""Check if handler can import a processdefinition
based on the data given."""
=== Zope3/src/zope/app/interfaces/workflow/stateful.py 1.18 => 1.18.4.1 ===
--- Zope3/src/zope/app/interfaces/workflow/stateful.py:1.18 Thu Jul 31 11:01:31 2003
+++ Zope3/src/zope/app/interfaces/workflow/stateful.py Wed Aug 13 10:42:14 2003
@@ -35,7 +35,7 @@
class ITransitionEvent(IWorkflowEvent):
"""An event that signalizes a transition from one state to another."""
- object = Attribute("""The content object whose status will be changed.""")
+ object = Attribute("""The content object whose status will be changed.""")
process = Attribute("""The process instance that is doing the
transition. Note that this object really represents
@@ -87,7 +87,7 @@
class IState(Interface):
"""Interface for state of a stateful workflow process definition."""
- # XXX Should at least have a title, if not a value as well
+ # XXX Should at least have a title, if not a value as well
class IStatefulStatesContainer(IProcessDefinitionElementContainer):
"""Container that stores States."""
@@ -109,7 +109,7 @@
def __allowed(self):
return [MANUAL, AUTOMATIC]
-
+
allowed_values = ContextProperty(__allowed)
@@ -152,14 +152,14 @@
title=u"Trigger Mode",
description=u"How the Transition is triggered (Automatic/Manual)",
default=u"Manual")
-
+
def getSourceState():
"""Get Source State."""
def setSourceState(source):
"""Set Source State."""
-
+
def getDestinationState():
"""Get Destination State."""
@@ -189,7 +189,7 @@
def setTriggerMode():
"""Set TriggerMode."""
-
+
def getProcessDefinition():
"""Return the ProcessDefinition Object."""
@@ -208,9 +208,9 @@
default=None,
required=False)
- schemaPermissions = Attribute(u"A dictioary that maps set/get permissions"
+ schemaPermissions = Attribute(u"A dictionary that maps set/get permissions"
u"on the schema's fields. Entries looks as"
- u"follows: {fieldname : (set_perm, get_perm)}")
+ u"follows: {fieldname:(set_perm, get_perm)}")
states = Attribute("State objects container.")
@@ -218,31 +218,31 @@
def addState(name, state):
"""Add a IState to the process definition."""
-
+
def getState(name):
"""Get the named state."""
-
+
def removeState(name):
"""Remove a state from the process definition
-
+
Raises ValueError exception if trying to delete the initial state.
"""
-
+
def getStateNames():
"""Get the state names."""
-
+
def getInitialStateName():
"""Get the name of the initial state."""
-
+
def addTransition(name, transition):
"""Add a ITransition to the process definition."""
-
+
def getTransition(name):
"""Get the named transition."""
-
+
def removeTransition(name):
"""Remove a transition from the process definition."""
-
+
def getTransitionNames():
"""Get the transition names."""
@@ -275,7 +275,7 @@
def getProcessDefinition():
"""Get the process definition for this instance."""
-
+
class IContentProcessRegistry(Interface):
"""Content Type <-> Process Definitions Registry
More information about the Zope3-Checkins
mailing list