Last change
on this file since 458 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
568 bytes
|
Line | |
---|
1 | ## Script (Python) "discussion_publish_comment" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters=obj=None |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | from Products.CMFPlone import transaction_note |
---|
11 | from Products.qPloneComments.utils import publishDiscussion |
---|
12 | |
---|
13 | # Publish discussion item |
---|
14 | publishDiscussion(context) |
---|
15 | |
---|
16 | transaction_note('Published discussion item') |
---|
17 | target = '%s/%s' % (context.absolute_url(), context.getTypeInfo().getActionById('view') ) |
---|
18 | |
---|
19 | return context.REQUEST.RESPONSE.redirect(target) |
---|
Note: See
TracBrowser
for help on using the repository browser.