Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.34 1998/07/24 05:44:43 mast Exp $ */ + /* $Id: module.pike,v 1.35 1999/05/19 09:09:09 peter Exp $ */      #include <module.h>      #define TRACE_ENTER(A,B) do{if(id->misc->trace_enter)id->misc->trace_enter((A),(B));}while(0)   #define TRACE_LEAVE(A) do{if(id->misc->trace_leave)id->misc->trace_leave((A));}while(0)      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;
Roxen.git/server/base_server/module.pike:33:    _do_call_outs();    return 1;   }      string file_name_and_stuff()   {    return ("<b>Loaded from:</b> "+(roxen->filename(this))+"<br>"+    (this->cvs_version?"<b>CVS Version: </b>"+fix_cvs(this->cvs_version)+"<nr>\n":""));   }    + static private object _my_configuration; +    object my_configuration()   { -  +  if(_my_configuration) +  return _my_configuration;    object conf;    foreach(roxen->configurations, conf)    if(conf->otomod[this])    return conf;    return 0;   }      string module_creator;   string module_url;    -  + nomask void set_configuration(object c) + { +  if(_my_configuration && _my_configuration != c) +  error("set_configuration() called twice.\n"); +  _my_configuration = c; + } +    void set_module_creator(string c)   {    module_creator = c;   }      void set_module_url(string to)   {    module_url = to;   }   
Roxen.git/server/base_server/module.pike:349:    set( v, vars[v] );    return !err;   }         string comment()   {    return "";   }    + string query_internal_location() + { +  if(!_my_configuration) +  error("Please do not call this function from create()!\n"); +  return _my_configuration->query_internal_location(this_object()); + } +    /* Per default, return the value of the module variable 'location' */   string query_location()   {    string s;    catch{s = query("location");};    return s;   }      /* By default, provide nothing. */   string query_provides() { return 0; }