Back to index

plone3  3.1.7
Public Member Functions | Static Private Attributes
CMFEditions.StandardModifiers.RetainPermissionsSettings Class Reference

List of all members.

Public Member Functions

def beforeSaveModifier
def afterRetrieveModifier

Static Private Attributes

tuple __implements__ = (ISaveRetrieveModifier, )

Detailed Description

Standard modifier retaining permissions settings

This is nearly essential if we are going to be retaining workflow.

Definition at line 526 of file StandardModifiers.py.


Member Function Documentation

def CMFEditions.StandardModifiers.RetainPermissionsSettings.afterRetrieveModifier (   self,
  obj,
  repo_clone,
  preserve = () 
)

Definition at line 537 of file StandardModifiers.py.

00537 
00538     def afterRetrieveModifier(self, obj, repo_clone, preserve=()):
00539         # check if the modifier is called with a valid working copy
00540         if obj is None:
00541             return [], [], {}
00542 
00543         # replace the permission stuff of the repository clone by the
00544         # one of the working copy or delete it
00545         for key, val in obj.__dict__.items():
00546             # Find permission settings
00547             if key.startswith('_') and key.endswith('_Permission'):
00548                 setattr(repo_clone, key, val)
00549 
00550         return [], [], {}
00551 
00552 InitializeClass(RetainPermissionsSettings)

Definition at line 534 of file StandardModifiers.py.

00534 
00535     def beforeSaveModifier(self, obj, clone):
00536         return {}, [], []


Member Data Documentation

tuple CMFEditions.StandardModifiers.RetainPermissionsSettings.__implements__ = (ISaveRetrieveModifier, ) [static, private]

Definition at line 532 of file StandardModifiers.py.


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