Ignore:
Timestamp:
12 Oct 2006, 18:23:28 (18 years ago)
Author:
joachim
Message:

several simplifications to student_index, student_edit must be called instead of passport_entry_view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r658 r672  
    8585            return -1,"Student with Id %s already booked bed %s" % (student_id,records[0].bed)
    8686           
    87         records = [r for r in self.searchResults({'bed_type' : bed_type, "student": ''})]
     87        records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r]
    8888        if len(records) == 0:
    8989            return -1,"no bed of this type available"
Note: See TracChangeset for help on using the changeset viewer.