Last change
on this file since 6856 was
3735,
checked in by Henrik Bettermann, 16 years ago
|
- patch doActionFor
- do not cache action portlet
- allow graduate transition for more states
|
File size:
836 bytes
|
Line | |
---|
1 | def doActionFor(self, ob, action, wf_id=None, *args, **kw): |
---|
2 | """Execute the given workflow action for the object. |
---|
3 | |
---|
4 | Invoked by user interface code. |
---|
5 | The workflow object must perform its own security checks. |
---|
6 | """ |
---|
7 | # Don't recurse for initial transitions! # XXX urgh |
---|
8 | |
---|
9 | #isproxyfolderishdoc = isinstance(ob, ProxyFolderishDocument) or \ |
---|
10 | # isinstance(ob, ProxyBTreeFolderishDocument) |
---|
11 | #if isproxyfolderishdoc and not kw.has_key('dest_container'): |
---|
12 | # return self._doActionForRecursive(ob, action, wf_id=wf_id, |
---|
13 | # *args, **kw) |
---|
14 | #else: |
---|
15 | |
---|
16 | #import pdb;pdb.set_trace() |
---|
17 | |
---|
18 | return self._doActionFor(ob, action, wf_id=wf_id, *args, **kw) |
---|
19 | |
---|
20 | from Products.CPSWorkflow.workflowtool import WorkflowTool |
---|
21 | WorkflowTool.doActionFor = doActionFor |
---|
Note: See
TracBrowser for help on using the repository browser.