Back to index

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

List of all members.

Public Member Functions

def beforeSaveModifier
def afterRetrieveModifier

Static Public Attributes

string beforeSaveModifierAttribute = 'beforeSave1'
string afterRetrieveModifierAttribute = 'afterRetrieve1'

Detailed Description

Definition at line 75 of file test_ModifierRegistryTool.py.


Member Function Documentation

Definition at line 66 of file test_ModifierRegistryTool.py.

00066 
00067     def afterRetrieveModifier(self, obj, repo_obj):
00068         try:
00069             arm = getattr(repo_obj, self.afterRetrieveModifierAttribute)
00070             arm += 1
00071         except AttributeError:
00072             arm = 1
00073         setattr(repo_obj, self.afterRetrieveModifierAttribute, arm)
00074         return [], [], {}

Definition at line 57 of file test_ModifierRegistryTool.py.

00057 
00058     def beforeSaveModifier(self, obj, copy_obj):
00059         try:
00060             bsm = getattr(copy_obj, self.beforeSaveModifierAttribute)
00061             bsm += 1
00062         except AttributeError:
00063             bsm = 1
00064         setattr(copy_obj, self.beforeSaveModifierAttribute, bsm)
00065         return {}, [], []


Member Data Documentation

Definition at line 77 of file test_ModifierRegistryTool.py.

Definition at line 76 of file test_ModifierRegistryTool.py.


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