source: WAeUP_SRP/trunk/skins/waeup_student/getStudentId.py @ 1049

Last change on this file since 1049 was 1025, checked in by joachim, 18 years ago

Removed all fields except study_course from student_study_course
adde StudyCourse? Widget
M profiles/default/layouts/student_study_course.xml
M skins/waeup_default/waeup_edit.py
M Widgets.py
catch unauthorised errors
M skins/waeup_student/application_edit_form.pt
M skins/waeup_student/getStudentInfo.py
M skins/waeup_student/study_course_view.pt
AM skins/waeup_student/getStudentId.py

  • Property svn:keywords set to Id
File size: 384 bytes
Line 
1## Script (Python) "getStudentId"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=
8##title=
9##
10# $Id: getStudentId.py 1025 2006-12-10 18:39:15Z joachim $
11"""
12return StudentId from request
13"""
14ptl = context.REQUEST.get('PATH_TRANSLATED').split('/')
15id_index = ptl.index('students')
16if len(ptl) > id_index + 2:
17    return ptl[id_index + 1]
18return None
Note: See TracBrowser for help on using the repository browser.