Package StagingAddOn :: Module config
[hide private]
[frames] | no frames]

Module config



Configuration

$Id: config.py 23871 2006-05-24 10:34:33Z dbaty $



Variables [hide private]
  PROJECT_NAME = 'StagingAddOn'
  GLOBALS = globals()
  SKINS_DIR = 'skins'
  TESTING = False
  CONFIGLETS = {'id': 'staging_add_on_install', 'name': 'staging_to...
  PUBLISH_TRANSITION_POST_SCRIPT_ID = 'promoteVersion'
  WORKFLOW_SCRIPTS = {'id': 'createNewVersion', 'params': 'state_change_i...
  expr = 'python: here.portal_staging.isAllowedToCreateNewVer...
  NEW_TRANSITION_ID = 'createNewVersion'
  NEW_TRANSITION_PROPERTIES = {'title': 'Create new version', 'description': 'Crea...

Variables Details [hide private]

PROJECT_NAME

None
Value:
'StagingAddOn'                                                         
      

GLOBALS

None
Value:
globals()                                                              
      

SKINS_DIR

None
Value:
'skins'                                                                
      

TESTING

None
Value:
False                                                                  
      

CONFIGLETS

None
Value:
{'id': 'staging_add_on_install', 'name': 'staging_tool_title', 'action
': 'string:${portal_url}/portal_staging', 'category': 'Products', 'per
mission': ManagePortal, 'imageUrl': 'product_icon.gif'},               
      

PUBLISH_TRANSITION_POST_SCRIPT_ID

None
Value:
'promoteVersion'                                                       
      

WORKFLOW_SCRIPTS

None
Value:
{'id': 'createNewVersion', 'params': 'state_change_info', 'body': """\
from Products.CMFCore.utils import getToolByName

obj = state_change_info.object
staging_tool = getToolByName(obj, 'portal_staging')
staging_tool.createNewVersion(obj)"""}, {'id': PUBLISH_TRANSITION_POST
_SCRIPT_ID, 'params': 'state_change_info', 'body': """\
from Products.CMFCore.utils import getToolByName
...                                                                    
      

expr

None
Value:
'python: here.portal_staging.isAllowedToCreateNewVersion(here)'        
      

NEW_TRANSITION_ID

None
Value:
'createNewVersion'                                                     
      

NEW_TRANSITION_PROPERTIES

None
Value:
{'title': 'Create new version', 'description': 'Create new version', '
new_state_id': '', 'trigger_type': 1, 'script_name': 'createNewVersion
', 'actbox_name': 'Create new version', 'actbox_url': 'createNewVersio
n', 'actbox_category': 'workflow', 'props': {'guard_expr': expr}}