Changeset 1764 for WAeUP_SRP


Ignore:
Timestamp:
10 May 2007, 04:41:04 (18 years ago)
Author:
Henrik Bettermann
Message:

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

Location:
WAeUP_SRP/trunk/skins
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/getNextSessionId.py

    r1758 r1764  
    1010# $Id$
    1111"""
    12 return the next Session Id 
     12return the next Session Id
    1313"""
    14 if session != context.getSessionId():
     14
     15if session != context.getSessionId()[2:]:
    1516    ns = int(session) + 1
    1617else:
  • WAeUP_SRP/trunk/skins/waeup_default/getSessionId.py

    r1707 r1764  
    1010# $Id$
    1111"""
    12 return the Session Id 
     12return the Session Id
    1313"""
     14
     15# must be changed in 2007/2008; should return only the last two digits
     16
    1417import DateTime
    1518now = DateTime.DateTime()
  • WAeUP_SRP/trunk/skins/waeup_default/getSessionString.py

    r1490 r1764  
    1 ## Script (Python) "getSessionId"
     1## Script (Python) "getSessionString"
    22##bind container=container
    33##bind context=context
     
    1010# $Id$
    1111"""
    12 return the Session string 
     12return the Session string
    1313"""
    1414import DateTime
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r1758 r1764  
    9292    payment.getContent().edit(mapping=info)
    9393    wftool.doActionFor(payment,'close')
    94     if next_session == context.getSessionId():
     94    if next_session == context.getSessionId()[2:]:
    9595        wftool.doActionFor(student,'pay_school_fee')
    9696    else:
    9797        study_course = getattr(student,'study_course')
    98         wftool.doActionFor(study_course,'open')
     98        #wftool.doActionFor(study_course,'open')
    9999        study_course_doc = study_course.getContent()
    100100        next_level = "%s" % (int(s_brain.level) + 100)
Note: See TracChangeset for help on using the changeset viewer.