Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
CMFEditions.VersionPolicies.ATVersionOnEditPolicy Class Reference
Inheritance diagram for CMFEditions.VersionPolicies.ATVersionOnEditPolicy:
Inheritance graph
[legend]
Collaboration diagram for CMFEditions.VersionPolicies.ATVersionOnEditPolicy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setupPolicyHook
def removePolicyHook
def Title

Public Attributes

 id
 title

Static Public Attributes

tuple FC_ACTION_LIST
tuple security = ClassSecurityInfo()

Detailed Description

A policy that implements version creation on edit for AT types,
   requires a custom edit_macros.pt and a controller script called
   update_version_on_edit.  This policy automatically adds and removes
   the controller script from the AT edit controller chain on install.

Definition at line 49 of file VersionPolicies.py.


Member Function Documentation

Definition at line 82 of file VersionPolicies.py.

00082 
00083     def removePolicyHook(self, portal, **kw):
00084         remove_form_controller_overrides(portal, self.FC_ACTION_LIST)
00085 
00086 
# Helper methods

Here is the call graph for this function:

Definition at line 79 of file VersionPolicies.py.

00079 
00080     def setupPolicyHook(self, portal, **kw):
00081         add_form_controller_overrides(portal, self.FC_ACTION_LIST)

Here is the call graph for this function:

Definition at line 45 of file VersionPolicies.py.

00045 
00046     def Title(self):
00047         return self.title
00048 

Here is the caller graph for this function:


Member Data Documentation

Initial value:
({'template': 'atct_edit',
                       'status': 'success',
                       'action': 'traverse_to',
                       'expression': 'string:update_version_before_edit',
                       'context':None,
                       'button':None},
                      {'template': 'atct_edit',
                       'status': 'success',
                       'action': 'traverse_to',
                       'expression': 'string:add_reference',
                       'context':None,
                       'button':'form_add'},
                      {'template': 'atct_edit',
                       'status': 'success',
                       'action': 'traverse_to',
                       'expression': 'string:go_back',
                       'context':None,
                       'button':'cancel'},
                      {'template': 'validate_integrity',
                       'status': 'success',
                       'action': 'traverse_to',
                       'expression': 'string:update_version_on_edit',
                       'context':None,
                       'button':None},)

Definition at line 54 of file VersionPolicies.py.

Definition at line 41 of file VersionPolicies.py.

tuple CMFEditions.VersionPolicies.VersionPolicy.security = ClassSecurityInfo() [static, inherited]

Definition at line 38 of file VersionPolicies.py.

Definition at line 42 of file VersionPolicies.py.


The documentation for this class was generated from the following file: