Package CMFSetup :: Module actions
[show private | hide private]
[frames | no frames]

Module CMFSetup.actions

Classes: ActionsProviderConfigurator

$Id: actions.py 36924 2005-04-13 13:05:02Z yuppie $
Classes
ActionProvidersConfigurator Synthesize XML description of site's action providers.

Function Summary
  exportActionProviders(context)
Export action providers and their actions as an XML file o 'context' must implement IExportContext.
  importActionProviders(context)
Import action providers and their actions from an XML file.

Variable Summary
str _FILENAME = 'actions.xml'

Function Details

exportActionProviders(context)

Export action providers and their actions as an XML file

o 'context' must implement IExportContext.

o Register via Python:

  registry = site.portal_setup.getExportStepRegistry()
  registry.registerStep( 'exportActionProviders'
                       , Products.CMFSetup.actions.exportActionProviders
                       , 'Action Provider export'
                       , 'Export action providers registered with '
                         'the actions tool, and their actions.'
                       )

o Register via XML:

  <export-script id="exportActionProviders"
                 version="20040518-01"
                 handler="Products.CMFSetup.actions.exportActionProviders"
                 title="Action Provider export"
  >Export action providers registered with the actions tool,
   and their actions.</export-script>

importActionProviders(context)

Import action providers and their actions from an XML file.

o 'context' must implement IImportContext.

o Register via Python:

  registry = site.portal_setup.getImportStepRegistry()
  registry.registerStep( 'importActionProviders'
                       , '20040518-01'
                       , Products.CMFSetup.actions.importActionProviders
                       , ()
                       , 'Action Provider import'
                       , 'Import  action providers registered with '
                         'the actions tool, and their actions.'
                       )

o Register via XML:

  <setup-step id="importActionProviders"
              version="20040524-01"
              handler="Products.CMFSetup.actions.importActionProviders"
              title="Action Provider import"
  >Import action providers registered with the actions tool,
   and their actions.</setup-step>

Variable Details

_FILENAME

Type:
str
Value:
'actions.xml'                                                          

Generated by Epydoc 2.1 on Wed Nov 30 03:58:45 2005 http://epydoc.sf.net