Changeset bc6e68 in indico


Ignore:
Timestamp:
03/08/10 12:13:47 (3 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
9dccaf, f3d0f4
Parents:
1f2809
git-author:
Ian Rolewicz <ian.rolewicz@…> (03/04/10 11:07:31)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (03/08/10 12:13:47)
Message:

[FIX] Export ICal fails for some categories

  • Encoding for the chair's info wasn't checked when exporting a conference to iCal
  • fix #255
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/ICALinterface/conference.py

    r9033fd rbc6e68  
    2929 
    3030class ProgrammeToiCal(ICALBase): 
    31      
     31 
    3232    def __init__(self, conf): 
    3333        self._conf = conf 
    34              
     34 
    3535    def getBody(self): 
    3636        return "" 
     
    4848        text += self._printFooter() 
    4949        return text 
    50      
     50 
    5151class CategoryToiCal(ICALBase): 
    5252 
     
    6262 
    6363class ConferenceToiCal(ICALBase): 
    64      
     64 
    6565    def __init__(self, conf): 
    6666        self._conf = conf 
     
    7171 
    7272    def getCore(self): 
    73         url = str( urlHandlers.UHConferenceDisplay.getURL( self._conf ) )  
     73        url = str( urlHandlers.UHConferenceDisplay.getURL( self._conf ) ) 
    7474        text = self._printEventHeader(self._conf) 
    7575        text += "URL;VALUE=URI:%s\n" % url 
     
    8282            chair = fullchair = av.getDirectFullName() 
    8383            if av.getAffiliation() != "": 
    84                 fullchair = "%s (%s)" % (fullchair,av.getAffiliation())                 
     84                fullchair = "%s (%s)" % (fullchair,av.getAffiliation()) 
    8585        if not self._protected: 
    8686            if self._conf.getDescription() != "": 
    8787                desc = self._lt(self._conf.getDescription())+"\\n" 
    8888            if fullchair != "": 
    89                 desc = "%s%s\\n" % (desc,fullchair) 
    90          
     89                desc = "%s%s\\n" % (desc,self._lt(fullchair)) 
     90 
    9191        text += "DESCRIPTION:%s%s\n" % (desc,url) 
    9292        room="" 
     
    126126        self._conf = conf 
    127127        self._session = session 
    128       
     128 
    129129    def getCore(self): 
    130130 
     
    160160 
    161161class ContribToiCal(ICALBase): 
    162      
     162 
    163163    def __init__(self, conf, contrib): 
    164164        self._conf = conf 
     
    185185        text += self._printEventFooter() 
    186186        return text 
    187      
     187 
    188188    def getBody(self): 
    189189        url = quoteattr( str( urlHandlers.UHContributionDisplay.getURL( self._contrib ) ) ) 
     
    192192        text += self._printFooter() 
    193193        return text 
    194          
    195          
     194 
     195 
Note: See TracChangeset for help on using the changeset viewer.