Last change
on this file since 205 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
454 bytes
|
Line | |
---|
1 | ## Controller Script Python "validate_reply" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind state=state |
---|
7 | ##bind subpath=traverse_subpath |
---|
8 | ##parameters= |
---|
9 | ##title=validates discussion_reply |
---|
10 | |
---|
11 | if hasattr(context, 'review_state') and not context.review_state=="published": |
---|
12 | return state.set(status='failure', portal_status_message="You can't add comment to not published reply.") |
---|
13 | |
---|
14 | return state |
---|
Note: See
TracBrowser
for help on using the repository browser.