Changeset 1306 for WAeUP_SRP/trunk


Ignore:
Timestamp:
16 Jan 2007, 06:33:04 (18 years ago)
Author:
Henrik Bettermann
Message:

iteration over non sequence fixed

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1305 r1306  
    139139        #import pdb;pdb.set_trace()
    140140        if len(records) == 0:
    141             return -2
     141            return -2,"No bed available"
    142142        rec = records[0]
    143143        self.modifyRecord(bed=rec.bed,student=student_id)
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r1305 r1306  
    8585                                 ds = ds,
    8686                                 )
    87         elif code == -2
     87        elif code == -2:
    8888            return context.accommodation_pin_edit_form(rendered = res,
    8989                                 psm = "No bed available. Your category is already fully booked.",
    9090                                 mode = mode,
    9191                                 ds = ds,
    92                                  )       
     92                                 )
    9393        student.invokeFactory('StudentAccommodation',acco_id)
    9494        acco = getattr(student,acco_id)
Note: See TracChangeset for help on using the changeset viewer.