Back to index

plone3  3.1.7
Functions | Variables
CMFPlacefulWorkflow.setuphandlers Namespace Reference

Functions

def installMarker

Variables

string __version__ = "$Revision: $"
 -*- coding: utf-8 -*- Copyright (C) 2008 Ingeniweb
string __docformat__ = 'restructuredtext'

Function Documentation

Apply a marker interface to the workflow tool to indicate that the
product is installed.

Definition at line 27 of file setuphandlers.py.

00027 
00028 def installMarker(context):
00029     """
00030     Apply a marker interface to the workflow tool to indicate that the
00031     product is installed.
00032     """
00033     # Only run step if a flag file is present (e.g. not an extension profile)
00034     if context.readDataFile('placeful_marker.txt') is None:
00035         return
00036     site = context.getSite()
00037     wf = getToolByName(site, 'portal_workflow', None)
00038     if wf is not None:
00039         alsoProvides(wf, IPlacefulMarker)

Here is the call graph for this function:


Variable Documentation

Definition at line 21 of file setuphandlers.py.

-*- coding: utf-8 -*- Copyright (C) 2008 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 18 of file setuphandlers.py.