rem: if ((bRefresh || !g_allSupportedTimezones[key]) && this.m_sessionId != null) { var url = (this.sessionUri.spec + "get_all_timezones.wcap?appid=mozilla-calendar" + "&fmt-out=text%2Fcalendar&id=" + encodeURIComponent(this.m_sessionId)); var str = issueSyncRequest( url ); var icalRootComp = getIcsService().parseICS( str ); if (icalRootComp == null) throw new Components.Exception("invalid data, expected ical!"); checkWcapIcalErrno( icalRootComp ); 
add: if (bRefresh || !g_allSupportedTimezones[key]) { url += "&fmt-out=text%2Fcalendar"; var icalRootComp = this.issueSyncRequest( url, stringToIcal ); 
context:     getSupportedTimezones:    function( bRefresh )    {        var key = this.sessionUri.hostPort;        if ((bRefresh || !g_allSupportedTimezones[key]) &&            this.m_sessionId != null)        {            var url = (this.sessionUri.spec +                       "get_all_timezones.wcap?appid=mozilla-calendar" +                       "&fmt-out=text%2Fcalendar&id=" +                       encodeURIComponent(this.m_sessionId));            var str = issueSyncRequest( url );            var icalRootComp = getIcsService().parseICS( str );            if (icalRootComp == null)                throw new Components.Exception("invalid data, expected ical!");            checkWcapIcalErrno( icalRootComp );            var tzids = [];            var this_ = this;            forEachIcalComponent(                icalRootComp, "VTIMEZONE",                function( subComp ) {                    try {                        var tzCal = getIcsService().createIcalComponent(                            "VCALENDAR" );                        subComp = subComp.clone();                        tzCal.addSubcomponent( subComp );                        getIcsService().addTimezone( tzCal, "", "" );                        tzids.push( subComp.getFirstProperty("TZID").value );                    }                    catch (exc) { // ignore errors:                        this_.log( "error: " + exc );                    }                } );            g_allSupportedTimezones[key] = tzids;        }        return g_allSupportedTimezones[key];    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0d798debb55bbc54cd95be1d0348c16b56deb3de/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js