Last change
on this file since 370 was
370,
checked in by joachim, 18 years ago
|
allow entering and changing of ID's,
M profiles/default/vocabularies/courselevel.xml
A profiles/default/schemas/student_study_course.xml
M profiles/default/schemas/faculty.xml
M profiles/default/workflows.xml
M profiles/default/layouts/certificate.xml
M profiles/default/layouts/waeup_common.xml
A profiles/default/layouts/student_study_course.xml
M profiles/default/layouts/study_level.xml
M profiles/default/layouts/course.xml
M profiles/default/layouts/department.xml
M profiles/default/layouts/faculty.xml
M profiles/default/types/Certificate.xml
M profiles/default/types/Semester.xml
A profiles/default/types/StudentStudyCourse.xml
M profiles/default/types/StudyLevel.xml
M profiles/default/types/Course.xml
M profiles/default/types/CertificatesFolder.xml
M profiles/default/types/CertificateCourse.xml
M profiles/default/types/AcademicsFolder.xml
M profiles/default/types/Faculty.xml
M profiles/default/types/CoursesFolder.xml
A skins/waeup_default/id_rename_form.pt
A skins/waeup_default/id_rename.py
A skins/waeup_default/waeup_document_create_do.py
M skins/waeup_academics/academics_contents_display_buttons.py
M skins/waeup_academics/academics_contents.pt
M Academics.py
|
File size:
557 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 | new_ids = REQUEST['new_ids'] |
---|
12 | new_ids = [id.upper() for id in REQUEST['new_ids']] |
---|
13 | |
---|
14 | context.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) |
---|
15 | |
---|
16 | return REQUEST.RESPONSE.redirect(context.absolute_url() + \ |
---|
17 | ('/academics_contents?portal_status_message=%s' \ |
---|
18 | % ('psm_item(s)_renamed',))) |
---|
Note: See
TracBrowser for help on using the repository browser.