Ignore:
Timestamp:
27 Oct 2007, 21:53:04 (17 years ago)
Author:
Henrik Bettermann
Message:

rebuild getNextInfo.py completely
fetch session from portal properties.xml
change all scripts using getSessionId
remove StudentCourseResult? relevant code from event services
make pay_by_sc.py and interswitch_cb.py work (rebuild both)

Location:
WAeUP_SRP/base/skins/waeup_accommodation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_accommodation/allocate_reserved_bed.py

    r1566 r2454  
    6464students = context.portal_url.getPortalObject().campus.students
    6565student_obj = getattr(students,sid)
    66 acco_id = "accommodation_%s" % context.getSessionId()
     66acco_id = "accommodation_%s" % context.getSessionId()[0]
    6767while True:
    6868    if not res:
  • WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py

    r2000 r2454  
    6060        return redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))
    6161    student_obj = getattr(students,student_id)
    62     acco_id = "accommodation_%s" % context.getSessionId()
     62    acco_id = "accommodation_%s" % context.getSessionId()[0]
    6363    if acco_id in student_obj.objectIds():
    6464        acco_doc = getattr(student_obj, acco_id).getContent()
  • WAeUP_SRP/base/skins/waeup_accommodation/getAccommodationInfo.py

    r2427 r2454  
    8080            booking_allowed = info['verdict'] in ("A",
    8181                                                 "B",)
    82                                                  
     82
    8383booking_allowed = False # booking temporarily disabled
    8484                        # the algorithm must be adapted to new course_results catalog
    8585                        # and/or FCEOkene modalities
    86                        
    87                        
    88                        
    89                        
    90                        
    91                        
    92                        
    93                                                                          
    94                                                  
     86
     87
    9588info['booking_allowed'] = booking_allowed
    9689if not booking_allowed:
    9790    info['acco'] = None
    9891    return info
    99 acco_id = 'accommodation_2006'
     92info['session'] = session = context.getSessionId() 
     93acco_id = 'accommodation_' + session[0]
    10094acco = getattr(student,acco_id,None)
    10195info['acco'] = acco
  • WAeUP_SRP/base/skins/waeup_accommodation/reserve_accommodation.py

    r2000 r2454  
    2727student = info['student']
    2828acco_id = info['acco_id']
    29 session = acco_id[-4:]
     29session = info['session'][1]
     30#session = acco_id[-4:]
    3031validate = REQUEST.has_key("cpsdocument_create_button")
    3132if info.has_key('acco') and info['acco']:
Note: See TracChangeset for help on using the changeset viewer.