Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlacefulWorkflow.PlacefulWorkflowTool Namespace Reference

Classes

class  PlacefulWorkflowTool

Functions

def addPlacefulWorkflowTool
def _makeWorkflowPolicyFactoryKey
def addWorkflowPolicyFactory
def _removeWorkflowPolicyFactory

Variables

string __version__ = "$Revision: 62441 $"
 CMFPlacefulWorkflow Copyright (C)2005 Ingeniweb.
string __docformat__ = 'restructuredtext'
string WorkflowPolicyConfig_id = ".wf_policy_config"
dictionary _workflow_policy_factories = {}

Function Documentation

def CMFPlacefulWorkflow.PlacefulWorkflowTool._makeWorkflowPolicyFactoryKey (   factory,
  id = None,
  title = None 
) [private]

Definition at line 214 of file PlacefulWorkflowTool.py.

00214 
00215 def _makeWorkflowPolicyFactoryKey(factory, id=None, title=None):
00216     # The factory should take one argument, id.
00217     if id is None:
00218         id = getattr(factory, 'id', '') or getattr(factory, 'meta_type', '')
00219     if title is None:
00220         title = getattr(factory, 'title', '')
00221     key = id
00222     if title:
00223         key = key + ' (%s)' % title
00224     return key

Here is the caller graph for this function:

def CMFPlacefulWorkflow.PlacefulWorkflowTool._removeWorkflowPolicyFactory (   factory,
  id = None,
  title = None 
) [private]
Make teardown in unitcase cleaner. 

Definition at line 229 of file PlacefulWorkflowTool.py.

00229 
00230 def _removeWorkflowPolicyFactory( factory, id=None, title=None ):
00231     """ Make teardown in unitcase cleaner. """
00232     key = _makeWorkflowPolicyFactoryKey( factory, id, title )
00233     try:
00234         del _workflow_policy_factories[key]
00235     except KeyError:
00236         pass
00237 
00238 InitializeClass(PlacefulWorkflowTool)
00239 registerToolInterface('portal_placeful_workflow', IPlacefulWorkflowTool)

Here is the call graph for this function:

Factory method for the Placeful Workflow Tool

Definition at line 51 of file PlacefulWorkflowTool.py.

00051 
00052 def addPlacefulWorkflowTool(self,REQUEST={}):
00053     """
00054     Factory method for the Placeful Workflow Tool
00055     """
00056     id='portal_placeful_workflow'
00057     pwt=PlacefulWorkflowTool()
00058     self._setObject(id, pwt, set_owner=0)
00059     getattr(self, id)._post_init()
00060     if REQUEST:
00061         return REQUEST.RESPONSE.redirect(self.absolute_url() + '/manage_main')

Here is the call graph for this function:

def CMFPlacefulWorkflow.PlacefulWorkflowTool.addWorkflowPolicyFactory (   factory,
  id = None,
  title = None 
)

Definition at line 225 of file PlacefulWorkflowTool.py.

00225 
00226 def addWorkflowPolicyFactory(factory, id=None, title=None):
00227     key = _makeWorkflowPolicyFactoryKey( factory, id, title )
00228     _workflow_policy_factories[key] = factory

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 24 of file PlacefulWorkflowTool.py.

CMFPlacefulWorkflow Copyright (C)2005 Ingeniweb.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 21 of file PlacefulWorkflowTool.py.

Definition at line 212 of file PlacefulWorkflowTool.py.

Definition at line 49 of file PlacefulWorkflowTool.py.