Last change
on this file was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
482 bytes
|
Rev | Line | |
---|
[1] | 1 | ##bind container=container |
---|
| 2 | ##bind context=context |
---|
| 3 | ##bind namespace= |
---|
| 4 | ##bind script=script |
---|
| 5 | ##bind subpath=traverse_subpath |
---|
| 6 | ##parameters=trbacks_checked |
---|
| 7 | ##title= |
---|
| 8 | ## |
---|
| 9 | pw = context.portal_workflow |
---|
| 10 | counter = 0 |
---|
| 11 | for trb in trbacks_checked: |
---|
| 12 | #try: |
---|
| 13 | obj = context.uid_catalog(UID=trb)[0].getObject() |
---|
| 14 | pw.doActionFor(obj,'publish') |
---|
| 15 | counter += 1 |
---|
| 16 | #except: |
---|
| 17 | # pass |
---|
| 18 | return state.set(status = 'success', portal_status_message="%s trackbacks published" % (counter)) |
---|
Note: See
TracBrowser
for help on using the repository browser.