def discard(self, token): with flush(): getUtility(IPendings).confirm(token) getUtility(IWorkflowStateManager).discard(token)
def discard(self, token): """See `IRegistrar`.""" with flush(): getUtility(IPendings).confirm(token) getUtility(IWorkflowStateManager).discard( SubscriptionWorkflow.__name__, token)