source:
WAeUP_SRP/trunk/skins/waeup_default/getSessionId.py
@
1779
Last change on this file since 1779 was 1764, checked in by , 18 years ago | |
---|---|
|
|
File size: 426 bytes |
Rev | Line | |
---|---|---|
[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 1764 2007-05-10 04:41:04Z henrik $ | |
11 | """ | |
[1764] | 12 | return the Session Id |
[1440] | 13 | """ |
[1764] | 14 | |
15 | # must be changed in 2007/2008; should return only the last two digits | |
16 | ||
[1440] | 17 | import DateTime |
18 | now = DateTime.DateTime() | |
19 | if now.month() > 7: | |
[1707] | 20 | s = "%s" % now.year() |
21 | else: | |
22 | s = "%s" % (now.year() - 1) | |
23 | return s |
Note: See TracBrowser for help on using the repository browser.