source: WAeUP_SRP/trunk/skins/waeup_utilities/getFromData_entry_mode.py @ 1386

Last change on this file since 1386 was 1380, checked in by joachim, 18 years ago

course registration

M waeup_student/student_index.py
M waeup_student/study_level_view.pt
M waeup_student/getStudyLevelInfo.py
M waeup_student/study_course_view.pt
M waeup_student/getStudyCourseInfo.py
AM waeup_academics/getCourseInfo.py

reindex entry_mode

M waeup_utilities/getFromData_entry_mode.py
M waeup_utilities/reindex_entry_mode.py

File size: 633 bytes
RevLine 
[1334]1## Script (Python) "get_entry_mode"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=sid
8##title=
9##
10# $Id: getFromData_entry_mode.py 1328 2007-01-19 18:16:32Z joachim $
11"""
12return entry_mode from application-object.
13"""
14students = context.portal_url.getPortalObject().campus.students
15student = getattr(students,sid,None)
16if student is None:
17    return None
18app = getattr(student,'application',None)
19if app is None:
20    return None
[1380]21#from Products.zdb import set_trace;set_trace()
[1334]22em = app.getContent().entry_mode
23if em:
24    return em
25return "None"
Note: See TracBrowser for help on using the repository browser.