Package StagingAddOn :: Package content :: Module configuration :: Class StagingAddOnConfiguration
[hide private]
[frames] | no frames]

Class StagingAddOnConfiguration



Products.ATContentTypes.content.base.ATCTContent --+
                                                   |
                                                  StagingAddOnConfiguration

Represent the staging configuration for a specific workflow.

Instance Methods [hide private]
  exclude_from_nav(self)
  Title(self)
Return a semi-static i18n-ed title.
  getWorkflowTitleAndId(self, wf_id=None)
Return the title and the id of wf_id as a single string.
  processForm(self, *args, **kwargs)
Reinstall the configuration in case it has been modified.
  manage_beforeDelete(self, item, container)
Uninstall configuration when item is removed.
  isInstalled(self)
Return True iff the configuration has been installed.
  install(self)
Install needed scripts and transitions in the workflow.
  installWorkflowScripts(self, wf)
Install workflow scripts on workflow wf.
  installTransition(self, wf)
Install "create new version" transition and "attach" it to configured "published" states of workflow wf.
  installScriptOnPublish(self, wf)
Install script on configured "publish" transitions of workflow wf.
  uninstall(self)
Uninstall scripts and transitions from the workflow.
  uninstallWorkflowScripts(self, wf)
Uninstall workflow scripts on workflow wf.
  uninstallTransition(self, wf)
Uninstall "create new version" transition and "detach" it from configured "published" states.
  uninstallScriptOnPublish(self, wf)
Uninstall script from configured "publish" transitions of workflow wf.
  getPossibleWorkflowIds(self)
Return ids of workflows on which StagingAddOn can be installed.
  getPossiblePublishedStateIds(self)
Return id of the states of the selected workflow.
  getPossiblePublishTransitionId(self)
Return id of the transitions of the selected workflow.
  getPossibleArchiveTransitionId(self)
Return id of the transitions of the selected workflow.

Class Variables [hide private]
  __implements__ = ATCTContent.__implements__
  portal_type = 'StagingAddOnConfiguration'
  meta_type = 'StagingAddOnConfiguration'
  archetype_name = 'StagingAddOn configuration'
  content_icon = 'sao_config_icon.gif'
  default_view = 'configuration_view'
  immediate_view = 'configuration_view'
  _at_rename_after_creation = False
  global_allow = False
  allow_discussion = False
  actions = tuple(actions)
  security = ClassSecurityInfo()
  decPrivate = security.declarePrivate
  decProtected = security.declareProtected
  decPublic = security.declarePublic
  schema = BaseSchema.copy()+ Schema((StringField('id', require...

Method Details [hide private]

exclude_from_nav(self)

 
None

Title(self)

 
Return a semi-static i18n-ed title.

getWorkflowTitleAndId(self, wf_id=None)

 

Return the title and the id of wf_id as a single string.

The returned string is built like this:

<id> (<title>)

processForm(self, *args, **kwargs)

 
Reinstall the configuration in case it has been modified.

manage_beforeDelete(self, item, container)

 
Uninstall configuration when item is removed.

isInstalled(self)

 
Return True iff the configuration has been installed.

install(self)

 
Install needed scripts and transitions in the workflow.

installWorkflowScripts(self, wf)

 
Install workflow scripts on workflow wf.

installTransition(self, wf)

 
Install "create new version" transition and "attach" it to configured "published" states of workflow wf.

installScriptOnPublish(self, wf)

 
Install script on configured "publish" transitions of workflow wf.

uninstall(self)

 
Uninstall scripts and transitions from the workflow.

uninstallWorkflowScripts(self, wf)

 
Uninstall workflow scripts on workflow wf.

uninstallTransition(self, wf)

 
Uninstall "create new version" transition and "detach" it from configured "published" states.

uninstallScriptOnPublish(self, wf)

 
Uninstall script from configured "publish" transitions of workflow wf.

getPossibleWorkflowIds(self)

 
Return ids of workflows on which StagingAddOn can be installed.

getPossiblePublishedStateIds(self)

 
Return id of the states of the selected workflow.

getPossiblePublishTransitionId(self)

 
Return id of the transitions of the selected workflow.

getPossibleArchiveTransitionId(self)

 
Return id of the transitions of the selected workflow.

Class Variable Details [hide private]

__implements__

None
Value:
ATCTContent.__implements__                                             
      

portal_type

None
Value:
'StagingAddOnConfiguration'                                            
      

meta_type

None
Value:
'StagingAddOnConfiguration'                                            
      

archetype_name

None
Value:
'StagingAddOn configuration'                                           
      

content_icon

None
Value:
'sao_config_icon.gif'                                                  
      

default_view

None
Value:
'configuration_view'                                                   
      

immediate_view

None
Value:
'configuration_view'                                                   
      

_at_rename_after_creation

None
Value:
False                                                                  
      

global_allow

None
Value:
False                                                                  
      

allow_discussion

None
Value:
False                                                                  
      

actions

None
Value:
tuple(actions)                                                         
      

security

None
Value:
ClassSecurityInfo()                                                    
      

decPrivate

None
Value:
security.declarePrivate                                                
      

decProtected

None
Value:
security.declareProtected                                              
      

decPublic

None
Value:
security.declarePublic                                                 
      

schema

None
Value:
BaseSchema.copy()+ Schema((StringField('id', required= True, vocabular
y= 'getPossibleWorkflowIds', widget= SelectionWidget(format= 'select',
 label= 'Workflow', label_msgid= 'label_config_id', description= "Sele
ct the workflow on which you want to " "install StagingAddOn.", descri
ption_msgid= 'help_config_id', i18n_domain= "stagingaddon",),), LinesF
ield('publishedStateId', schemata= SECOND_SCHEMATA, required= True, vo
cabulary= 'getPossiblePublishedStateIds', widget= MultiSelectionWidget
(format= 'select', label= 'Published state', label_msgid= 'label_confi
...