Last change
on this file since 2141 was
2031,
checked in by Henrik Bettermann, 17 years ago
|
enable registering courses for session 05
only drawback: level object for session 05 is not closed after submission (register_courses)
please check
|
File size:
433 bytes
|
Rev | Line | |
---|
[2031] | 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 | """ |
---|
| 12 | return the Session string |
---|
| 13 | """ |
---|
| 14 | import DateTime |
---|
| 15 | now = DateTime.DateTime() |
---|
| 16 | if now.month() > 8: |
---|
| 17 | return "%s/%s" % (now.year(),now.year()+1) |
---|
| 18 | return "%s/%s" % (now.year()-1,now.year()) |
---|
Note: See
TracBrowser for help on using the repository browser.