Last change
on this file since 15505 was
1482,
checked in by joachim, 18 years ago
|
add course registration.
The Link to the study_level is disabled in study_course_view.pt,
but can be invoked manually. On first invocation the courses are created.
|
-
Property svn:keywords set to
Id
|
File size:
598 bytes
|
Line | |
---|
1 | ## Script (Python) "folder_delete" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters=ids=[], REQUEST=None |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: course_result_delete.py 1482 2007-02-23 16:56:46Z joachim $ |
---|
11 | """ |
---|
12 | FIXME: add docstring. |
---|
13 | """ |
---|
14 | |
---|
15 | from Products.CMFCore.utils import getToolByName |
---|
16 | here = context |
---|
17 | |
---|
18 | ret_url = here.absolute_url() |
---|
19 | |
---|
20 | if ids: |
---|
21 | here.manage_delObjects(ids) |
---|
22 | message = 'portal_status_message=psm_item(s)_deleted' |
---|
23 | else: |
---|
24 | message = 'portal_status_message=psm_select_at_least_one_document' |
---|
25 | |
---|
26 | if REQUEST is not None: |
---|
27 | return REQUEST.RESPONSE.redirect(ret_url + '?' + message) |
---|
Note: See
TracBrowser for help on using the repository browser.