source: WAeUP_SRP/trunk/skins/waeup_default/getSessionId.py @ 1747

Last change on this file since 1747 was 1707, checked in by joachim, 18 years ago

new import function for createStudents,
catalog fields added

  • Property svn:keywords set to Id
File size: 354 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 1707 2007-04-25 11:58:39Z joachim $
11"""
12return the Session Id
13"""
14import DateTime
15now = DateTime.DateTime()
16if now.month() > 7:
[1707]17    s = "%s" % now.year()
18else:
19    s = "%s" % (now.year() - 1)
20return s
Note: See TracBrowser for help on using the repository browser.