Changeset b49d75 in indico


Ignore:
Timestamp:
03/22/12 15:20:40 (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:
c8a3a93
Parents:
fe97fd
Message:

[FIX] Location webcast export ics and detail

  • Fixed location info when exporting video services
  • If detail=event Indico will not export contributions data for video services
Location:
indico/MaKaC/plugins/Collaboration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/plugins/Collaboration/fossils.py

    r96cced rb49d75  
    278278    def getURL(self): 
    279279        pass 
    280     getURL.produce = lambda s: Collaboration.collaborationTools.CollaborationTools.getConferenceOrContributionURL(s) 
     280    getURL.produce = lambda s: str(Collaboration.collaborationTools.CollaborationTools.getConferenceOrContributionURL(s)) 
    281281    getURL.name = 'url' 
    282282 
  • indico/MaKaC/plugins/Collaboration/http_api.py

    rd20d8e rb49d75  
    276276                                contributions.append(tempContrib) 
    277277 
    278                         if len(contributions) == 0: # If we are here, no contributions but a request exists. 
     278                        if len(contributions) == 0 or self._detail == "event": # If we are here, no contributions but a request exists. 
    279279                            bk.setStartDate(bk._conf.getStartDate()) 
    280280                            bk.setEndDate(bk._conf.getEndDate()) 
     
    310310    """ 
    311311 
    312     _orig = None 
    313     _contrib = None 
    314     _startDate = None 
    315     _endDate = None 
    316  
    317312    def __init__(self, booking, contrib): 
    318313        self._orig = booking 
    319314        self._contrib = contrib 
     315        self._startDate = None 
     316        self._endDate = None 
    320317 
    321318    def __getattr__(self, name): 
     
    354351    def getEndDate(self): 
    355352        return self._endDate 
     353 
     354    def getLocation(self): 
     355        return self._contrib.getLocation().getName() if self._contrib.getLocation() else "" 
     356 
     357    def getRoom(self): 
     358        return self._contrib.getRoom().getName() if self._contrib.getRoom() else "" 
Note: See TracChangeset for help on using the changeset viewer.