Changeset 8234d14 in indico
- Timestamp:
- 04/03/12 17:54:20 (14 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 5739c10
- Parents:
- 5e2fd1
- Location:
- indico
- Files:
-
- 2 edited
-
MaKaC/plugins/RoomBooking/http_api.py (modified) (3 diffs)
-
web/http_api/ical.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/plugins/RoomBooking/http_api.py
r03c6d2d r8234d14 367 367 avc = get_query_parameter(queryParams, ['avc']) 368 368 avcSupport = get_query_parameter(queryParams, ['avcs', 'avcsupport']) 369 startupSupport = get_query_parameter(queryParams, ['sts', 'startupsupport']) 369 370 bookedFor = get_query_parameter(queryParams, ['bf', 'bookedfor']) 370 if not any((cancelled, rejected, confirmed != -1, archival, repeating, avc, avcSupport, bookedFor)):371 if not any((cancelled, rejected, confirmed != -1, archival, repeating, avc, avcSupport, startupSupport, bookedFor)): 371 372 return None 372 373 if cancelled is not None: … … 387 388 if avcSupport is not None: 388 389 avcSupport = (avcSupport == 'yes') 390 if startupSupport is not None: 391 startupSupport = (startupSupport == 'yes') 389 392 def _filter(obj): 390 393 if cancelled is not None and obj.isCancelled != cancelled: … … 402 405 if avcSupport is not None and obj.needsAVCSupport != avcSupport: 403 406 return False 407 if startupSupport is not None and obj.needsAssistance != startupSupport: 408 return False 404 409 if bookedFor and not fnmatch.fnmatch(obj.bookedForName.lower(), bookedFor.lower()): 405 410 return False -
indico/web/http_api/ical.py
rd20d8e r8234d14 93 93 event.set('dtstamp', now) 94 94 event.set('dtstart', getAdjustedDate(fossil['startDT'], None, "UTC")) 95 event.set('dtend', getAdjustedDate(datetime.datetime.combine(fossil['startDT'].date(), fossil['endDT'].time ()), None, "UTC"))95 event.set('dtend', getAdjustedDate(datetime.datetime.combine(fossil['startDT'].date(), fossil['endDT'].timetz()), None, "UTC")) 96 96 event.set('url', fossil['bookingUrl']) 97 97 event.set('summary', fossil['reason'])
Note: See TracChangeset
for help on using the changeset viewer.
