source: WAeUP_SRP/base/skins/waeup_default/getSessionId.py @ 2582

Last change on this file since 2582 was 2454, checked in by Henrik Bettermann, 17 years ago

rebuild getNextInfo.py completely
fetch session from portal properties.xml
change all scripts using getSessionId
remove StudentCourseResult? relevant code from event services
make pay_by_sc.py and interswitch_cb.py work (rebuild both)

  • Property svn:keywords set to Id
File size: 569 bytes
RevLine 
[1440]1## Script (Python) "getSessionId"
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: getSessionId.py 2454 2007-10-27 21:53:04Z henrik $
11"""
[1764]12return the Session Id
[1440]13"""
[1764]14
15# must be changed in 2007/2008; should return only the last two digits
16
[2454]17#import DateTime
18#now = DateTime.DateTime()
19#if now.month() > 11:
20#    s = "%s" % now.year()
21#else:
22#    s = "%s" % (now.year() - 1)
23#return s
24
25session_id = context.portal_properties.session[2:4]
26session_str = context.portal_properties.session
27
28return [session_id, session_str]
Note: See TracBrowser for help on using the repository browser.