Changeset 8234d14 in indico


Ignore:
Timestamp:
04/03/12 17:54:20 (14 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
5739c10
Parents:
5e2fd1
Message:

[IMP] Added startupsupport to HTTP API export

Location:
indico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/plugins/RoomBooking/http_api.py

    r03c6d2d r8234d14  
    367367    avc = get_query_parameter(queryParams, ['avc']) 
    368368    avcSupport = get_query_parameter(queryParams, ['avcs', 'avcsupport']) 
     369    startupSupport = get_query_parameter(queryParams, ['sts', 'startupsupport']) 
    369370    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)): 
    371372        return None 
    372373    if cancelled is not None: 
     
    387388    if avcSupport is not None: 
    388389        avcSupport = (avcSupport == 'yes') 
     390    if startupSupport is not None: 
     391        startupSupport = (startupSupport == 'yes') 
    389392    def _filter(obj): 
    390393        if cancelled is not None and obj.isCancelled != cancelled: 
     
    402405        if avcSupport is not None and obj.needsAVCSupport != avcSupport: 
    403406            return False 
     407        if startupSupport is not None and obj.needsAssistance != startupSupport: 
     408            return False 
    404409        if bookedFor and not fnmatch.fnmatch(obj.bookedForName.lower(), bookedFor.lower()): 
    405410            return False 
  • indico/web/http_api/ical.py

    rd20d8e r8234d14  
    9393    event.set('dtstamp', now) 
    9494    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")) 
    9696    event.set('url', fossil['bookingUrl']) 
    9797    event.set('summary', fossil['reason']) 
Note: See TracChangeset for help on using the changeset viewer.