Logo Search packages:      
Sourcecode: zope-cmfworkflow version File versions

def DCWorkflow::WorkflowUIMixin::WorkflowUIMixin::addManagedPermission (   self,
  REQUEST = None 

Definition at line 58 of file WorkflowUIMixin.py.

00058                                                    :
        if p in self.permissions:
            raise ValueError, 'Already a managed permission: ' + p
        if REQUEST is not None and p not in self.getPossiblePermissions():
            raise ValueError, 'Not a valid permission name:' + p
        self.permissions = self.permissions + (p,)
        if REQUEST is not None:
            return self.manage_permissions(
                REQUEST, manage_tabs_message='Permission added.')

    security.declareProtected(ManagePortal, 'delManagedPermissions')
    def delManagedPermissions(self, ps, REQUEST=None):

Generated by  Doxygen 1.6.0   Back to index