Changeset 3863 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
20 Jan 2009, 08:22:52 (16 years ago)
Author:
Henrik Bettermann
Message:

getPaymentsFolderInfo.py: resolve #600
getAccommodationInfo.py: implement disable switch
WAeUPImport.py: export student password

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccommodationInfo.py

    r3784 r3863  
    1515logger = logging.getLogger('Skins.getAccommodationInfo')
    1616import DateTime
     17
     18booking_disabled = False
    1719
    1820request = context.REQUEST
     
    121123    info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None)
    122124    info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid"
     125elif booking_disabled:
     126    info['booking_allowed'] = False
    123127
    124128d = {}
     
    147151info['student_status'] = student_status
    148152return info
    149 
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py

    r3736 r3863  
    7373info['prod_id'] = '61'
    7474
     75gown_records = aq_payments(Eq('student_id',student_id)  & Eq('category','gown'))
    7576try:
    7677    level = int(student_record.level)
    7778    end_level = int(student_record.end_level)
    78     if level >= end_level:
     79    if level >= end_level and not gown_records:
    7980        info['gown'] = True
    8081except:
Note: See TracChangeset for help on using the changeset viewer.