Back to index

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