Allows the user to request a workflow action. This method must perform its own security checks.
00256 : ''' Allows the user to request a workflow action. This method must perform its own security checks. ''' sdef = self._getWorkflowStateOf(ob) if sdef is None: raise WorkflowException, 'Object is in an undefined state' if action not in sdef.transitions: raise Unauthorized tdef = self.transitions.get(action, None) if tdef is None or tdef.trigger_type != TRIGGER_USER_ACTION: raise WorkflowException, ( 'Transition %s is not triggered by a user action' % action) if not self._checkTransitionGuard(tdef, ob): raise Unauthorized self._changeStateOf(ob, tdef, kw) security.declarePrivate('isWorkflowMethodSupported') def isWorkflowMethodSupported(self, ob, method_id):