source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_default/getSessionString.py @ 17952

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

at the moment getSessionId returns the year not the Id so that getNextSessionId and pay_by_sc did not work properly

  • Property svn:keywords set to Id
File size: 378 bytes
Line 
1## Script (Python) "getSessionString"
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: getSessionString.py 1764 2007-05-10 04:41:04Z henrik $
11"""
12return the Session string
13"""
14import DateTime
15now = DateTime.DateTime()
16if now.month() > 7:
17    return "%s/%s" % (now.year(),now.year()+1)
18return "%s/%s" % (now.year()-1,now.year())
Note: See TracBrowser for help on using the repository browser.