Changeset 1426 for WAeUP_SRP/trunk/skins/waeup_accommodation
- Timestamp:
- 15 Feb 2007, 20:59:20 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/book_reserved_bed.py
r1412 r1426 13 13 acco_cat = context.portal_accommodation 14 14 import logging 15 logger = logging.getLogger('Accommodation ')15 logger = logging.getLogger('Accommodation.BookReservedBed') 16 16 17 17 mode = 'create' 18 18 validate = REQUEST.has_key("cpsdocument_edit_button") and\ 19 REQUEST.get("cpsdocument_edit_button").startswith(' reserve')19 REQUEST.get("cpsdocument_edit_button").startswith('Reserve') 20 20 d = {} 21 21 rendered,psm,ds = lt.renderLayout(layout_id= 'acco_bed_booking', … … 34 34 mode = mode, 35 35 formaction = "book_reserved_bed", 36 button = " reserve bed",36 button = "Reserve Bed", 37 37 ds = ds, 38 38 ) … … 42 42 mode = mode, 43 43 formaction = "book_reserved_bed", 44 button = " reserve bed",44 button = "Reserve Bed", 45 45 ds = ds, 46 46 ) … … 63 63 break 64 64 bed_brain = res[0] 65 already = acco_cat(student=sid) 65 already = acco_cat(student=sid) 66 66 if already: 67 67 psm = "Student %s already reserved bed %s" % (sid, already[0].bed) … … 83 83 ds = ds, 84 84 formaction = "book_reserved_bed", 85 button = " reserve bed",85 button = "Reserve Bed", 86 86 ) 87 87 acco_cat.modifyRecord(bed = bid, student = sid) … … 91 91 mode = mode, 92 92 formaction = "book_reserved_bed", 93 button = " next reservation",93 button = "Next Reservation", 94 94 ds = ds, 95 95 )
Note: See TracChangeset for help on using the changeset viewer.