Last change
on this file since 1562 was
1557,
checked in by joachim, 18 years ago
|
display a list of students for the CourseAdviser?
fix for issue #115
M profiles/default/vocabularies/searchable_student_states.xml
M skins/waeup_default/isCourseAdviser.py
M skins/waeup_student/search_students.py
M skins/waeup_student/get_searchable_student_states.py
M skins/waeup_student/students_index.py
M skins/waeup_student/search_students_form.pt
don't delete courses twice
M skins/waeup_student/course_result_delete.py
more detailed error messages for invalid PINs fix for issue #108
M Widgets.py
inform student to contact faculty, if no courses are available
fix for #116
M skins/waeup_student/study_level_view.pt
|
-
Property svn:keywords set to
Id
|
File size:
747 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 1557 2007-03-15 16:00:27Z 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 | message = '' |
---|
21 | if ids: |
---|
22 | real_ids = [] |
---|
23 | for id in ids: |
---|
24 | if context.hasObject(id): |
---|
25 | real_ids.append(id) |
---|
26 | if real_ids: |
---|
27 | context.manage_delObjects(real_ids) |
---|
28 | message = 'portal_status_message=psm_item(s)_deleted' |
---|
29 | else: |
---|
30 | message = 'portal_status_message=psm_select_at_least_one_document' |
---|
31 | |
---|
32 | if REQUEST is not None: |
---|
33 | return REQUEST.RESPONSE.redirect(ret_url + '?' + message) |
---|
Note: See
TracBrowser for help on using the repository browser.