Roxen.git / server / modules / tags / emit_timerange.pike

version» Context lines:

Roxen.git/server/modules/tags/emit_timerange.pike:2:      #include <module.h>   inherit "module";      //<locale-token project="mod_emit_timerange">LOCALE</locale-token>   //<locale-token project="mod_emit_timerange">SLOCALE</locale-token>   #define SLOCALE(X,Y) _STR_LOCALE("mod_emit_timerange",X,Y)   #define LOCALE(X,Y) _DEF_LOCALE("mod_emit_timerange",X,Y)   // end locale stuff    - constant cvs_version = "$Id: emit_timerange.pike,v 1.40 2009/12/07 10:37:27 jonasw Exp $"; + constant cvs_version = "$Id$";   constant thread_safe = 1;   constant module_uniq = 1;   constant module_type = MODULE_TAG;   constant module_name = "Tags: Calendar tools";   constant module_doc = "This module provides the emit sources \"timerange\" and"   " \"timezones\" and the scope \"calendar\".";      #ifdef TIMERANGE_VALUE_DEBUG   #define DEBUG(X ...) report_debug( X )   #else
Roxen.git/server/modules/tags/emit_timerange.pike:504:    {    case 't': return sprintf("TimeRangeValue(%s)", type);    case 'O':    return sprintf("TimeRangeValue(%O/%O)", time, parent_scope);    }    }   }      private mapping(string:Calendar.YMD) cached_calendars = ([]);    - private constant uc_cal_lookup = + private mapping uc_cal_lookup =    mkmapping (map (calendars, upper_case), calendars);      Calendar.YMD get_calendar(string name)   {    if(!name)    return calendar;    if (Calendar.YMD cal = cached_calendars[name])    return cal;    string uc_name = upper_case (name);    if (Calendar.YMD cal = cached_calendars[uc_name])
Roxen.git/server/modules/tags/emit_timerange.pike:1250:    <c><p> YYYY-MM-DD HH:mm</p></c>    </row>    <row>    <c><p> seconds</p></c>    <c><p> YYYY-MM-DD HH:mm:ss</p></c>    </row>    </xtable>    </p>    <p>This attribute is <i>mandatory if the <att>query</att>    attribute exists</i>. -  This attribute does nothing if the query attribute doesn't exists. +  This attribute does nothing if the query attribute doesn't exist.    </p>    </attr>       <attr name='host' value='db-host-name'>    <p>    A databas host name, found under DBs in Administration    Interface. Used together with <att>query</att> attribute. See    <tag>emit source=\"sql\"</tag> for further information.    </p>    <p>