## Script (Python) "getSessionId"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
# $Id: getSessionId.py 2454 2007-10-27 21:53:04Z henrik $
"""
return the Session Id
"""

# must be changed in 2007/2008; should return only the last two digits

#import DateTime
#now = DateTime.DateTime()
#if now.month() > 11:
#    s = "%s" % now.year()
#else:
#    s = "%s" % (now.year() - 1)
#return s

session_id = context.portal_properties.session[2:4]
session_str = context.portal_properties.session

return [session_id, session_str]
