Back to index

plone3  3.1.7
Functions
fix_cmf_permissions Namespace Reference

Functions

def fix_cmf_permissions

Function Documentation

Changes the permissions on each member folder to normal settings.

Definition at line 3 of file fix_cmf_permissions.py.

00003 
00004 def fix_cmf_permissions(self):
00005     '''
00006     Changes the permissions on each member folder to normal settings.
00007     '''
00008     count = 0
00009     m = self.Members
00010     for v in m.objectValues():
00011         if hasattr(v, '_View_Permission'):
00012             del v._View_Permission
00013         if hasattr(v, '_Access_contents_information_Permission'):
00014             del v._Access_contents_information_Permission
00015         if v._p_changed:
00016             count = count + 1
00017     return 'Changed permissions on %d objects.' % count