source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_student/course_result_delete.py @ 14312

Last change on this file since 14312 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"""
12FIXME: add docstring.
13"""
14
15from Products.CMFCore.utils import getToolByName
16here = context
17
18ret_url = here.absolute_url()
19
20if ids:
21    here.manage_delObjects(ids)
22    message = 'portal_status_message=psm_item(s)_deleted'
23else:
24    message = 'portal_status_message=psm_select_at_least_one_document'
25
26if REQUEST is not None:
27    return REQUEST.RESPONSE.redirect(ret_url + '?' + message)
Note: See TracBrowser for help on using the repository browser.