Last change
on this file since 474 was
371,
checked in by joachim, 18 years ago
|
- faculty_edit_ removed from types/Faculty.xml
- Faculty of als Standard Institution Type (Academics.py)
- layouts/certificate_courses.xml code readonly in edit
- Certificate code und Certificate original code sollten nicht angezeigt
werden (in layouts/certificate_course.xml)
- 'Change object id' for portal_type Semester disabled
(academics_contents.pt)
- Department Schema added
M profiles/default/schemas/certificate.xml
M profiles/default/schemas/department.xml
M profiles/default/layouts/certificate_course.xml
M profiles/default/types/Faculty.xml
M skins/waeup_default/id_rename.py
M skins/waeup_academics/academics_contents_display_buttons.py
M skins/waeup_academics/academics_contents.pt
M Academics.py
|
File size:
821 bytes
|
Line | |
---|
1 | ##parameters= |
---|
2 | # $Id: folder_rename.py 28488 2005-10-21 13:16:23Z lregebro $ |
---|
3 | """ |
---|
4 | Rename objects which ids are passed in the request. |
---|
5 | |
---|
6 | Used within the folder_contents template. |
---|
7 | """ |
---|
8 | |
---|
9 | REQUEST = context.REQUEST |
---|
10 | |
---|
11 | if context.portal_type in ('CoursesFolder',): |
---|
12 | return REQUEST.RESPONSE.redirect(context.absolute_url() + \ |
---|
13 | ('/academics_contents?portal_status_message=%s' \ |
---|
14 | % ('Courses cannot be renamed',))) |
---|
15 | |
---|
16 | new_ids = REQUEST['new_ids'] |
---|
17 | new_ids = [id.upper() for id in REQUEST['new_ids']] |
---|
18 | |
---|
19 | context.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) |
---|
20 | |
---|
21 | return REQUEST.RESPONSE.redirect(context.absolute_url() + \ |
---|
22 | ('/academics_contents?portal_status_message=%s' \ |
---|
23 | % ('psm_item(s)_renamed',))) |
---|
Note: See
TracBrowser for help on using the repository browser.