source: WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getStudentNameInContext.py @ 11617

Last change on this file since 11617 was 1219, checked in by Henrik Bettermann, 18 years ago

waeup_default/waeup_document_view slimmed down and fixed

File size: 430 bytes
Line 
1## Script (Python) "getStudentNameInContext"
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: getStudentName.py 1162 2006-12-31 09:39:14Z henrik $
11"""
12return Info about the current Student in context
13"""
14id = context.getStudentId()
15res = context.students_catalog(id = id)
16if len(res) != 1:
17    return None
18return res[0].name
Note: See TracBrowser for help on using the repository browser.