pike.git / lib / modules / Calendar.pmod / Events.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Events.pmod:6:   mapping loaded_events=([]);   mapping loaded_regions=([]);      constant month2n=(["Jan":1,"Feb":2,"Mar":3,"Apr":4,"May":5,"Jun":6,    "Jul":7,"Aug":8,"Sep":9,"Oct":10,"Nov":11,"Dec":12]);   constant wd2n=(["Mon":1,"Tue":2,"Wed":3,"Thu":4,"Fri":5,"Sat":6,"Sun":7]);      void read_all_data()   {    all_data=master()->master_read_file( -  combine_path(__FILE__,"../events/regional")); +  combine_path(__DIR__,"events/regional"));   }         //! The Event system   //!   //! Q: How do I find out which days are red in a specific region?   //!   //! A: Events.<region>   //!   //! - contains the events for the region, as a SuperEvent.
pike.git/lib/modules/Calendar.pmod/Events.pmod:222:   {    return Event.Namedays(id,name,names,0,    start,stop,leapdayshift);   }      mapping made_namedays=([]);      string read_all_namedays()   {    return master()->master_read_file( -  combine_path(__FILE__,"../events/namedays")); +  combine_path(__DIR__,"events/namedays"));   }         Event.Namedays find_namedays(string region)   {    string id="namedays/"+region;    object res;    if ( (res=made_namedays[region]) )    return res;    string all=read_all_namedays();