Changeset 1447
- Timestamp:
- 20 Feb 2007, 13:41:26 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_accommodation
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt
r1441 r1447 48 48 /> 49 49 </td> 50 <td><a href="view" tal:attributes="href string:/${row/url}">50 <td><a href="view" tal:attributes="href row/url"> 51 51 <strong tal:content="row/title" /></a> </td> 52 52 <td tal:content="row/id"> </td> -
WAeUP_SRP/trunk/skins/waeup_accommodation/book_reserved_bed.py
r1446 r1447 118 118 if acco_id in student_obj.objectIds(): 119 119 acco_doc = getattr(student_obj, acco_id).getContent() 120 acco_doc.edit(mapping={'bed':bid + " (reservation cancelled by %s!)" % member}) 120 if acco_doc.bed == bid: 121 acco_doc.edit(mapping={'bed':bid + " (reservation cancelled by %s!)" % member}) 121 122 logger.info('"%s","cancelled reservation %s by","%s"' % (member,bid,sid)) 122 123 psm = "%s removed from %s" % (student.name,bid) -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py
r1441 r1447 10 10 # $Id$ 11 11 """ 12 return Info about the Faculties12 return Info about the Accommodation-Folder 13 13 """ 14 14 request = context.REQUEST … … 29 29 row['id'] = f.id 30 30 row['title'] = f.Title 31 row['url'] = f.relative_path31 row['url'] = "%s/%s" % (context.absolute_url(),f.id) 32 32 #fo = f.getObject() 33 33 #row['is_editable'] = mtool.checkPermission('Modify portal content', fo) -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallBeds.py
r1393 r1447 1 ##parameters=key=None 1 ##parameters=key=None,doc=None 2 2 # $Id$ 3 3 """ … … 5 5 6 6 """ 7 doc = context.getContent() 7 if doc is None: 8 doc = context.getContent() 8 9 if key is None: 9 10 return [(l,l) for l in 'ABCDEFGH'[:doc.beds_per_room]] -
WAeUP_SRP/trunk/skins/waeup_accommodation/reservedRoomsVoc.py
r1446 r1447 1 ##parameters=key=None 1 ##parameters=key=None,doc=None 2 2 # $Id$ 3 3 """ … … 5 5 6 6 """ 7 doc = context.getContent() 8 voc = [("_".join((r.split('/')[0],r.split('/')[1])),r) 9 for r in doc.reserved_rooms.replace(' ','').split(',') if r] 7 if doc is None: 8 doc = context.getContent() 9 voc = [("_".join((r.split('/')[0].strip(),r.split('/')[1].strip())),r) 10 for r in doc.reserved_rooms.split(',') if r] 10 11 #from Products.zdb import set_trace;set_trace() 11 12 if not key:
Note: See TracChangeset for help on using the changeset viewer.