Branch: Tag:

2000-02-16

2000-02-16 07:10:15 by Per Hedbor <ph@opera.com>

Enable the modules in a configuration on demand, not at load

Rev: server/base_server/configuration.pike:1.260
Rev: server/base_server/roxen.pike:1.430

3:    * (C) 1996 - 2000 Idonex AB.    */    - constant cvs_version = "$Id: configuration.pike,v 1.259 2000/02/08 22:12:13 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.260 2000/02/16 07:10:15 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <roxen.h>
54:      mapping variables = ([]);    + int inited;      string get_doc_for( string region, string variable )   {
2835:      void enable_all_modules()   { -  enabled_modules = retrieve("EnabledModules", this_object()); +  inited = 1;    -  +  add_parse_module( (object)this_object() ); +  enabled_modules = retrieve("EnabledModules", this_object());    object ec = roxenloader.LowErrorContainer();    roxenloader.push_compile_error_handler( ec );   
2874:      void create(string config)   { -  add_parse_module( (object)this_object() ); +     name=config;       defvar("comment", "", "Virtual server comment",
3228:       setvars(retrieve("spider#0", this_object()));    -  report_notice("Creating virtual server '"+query_name()+"'\n"); -  +     if (query("throttle"))    {    throttler=.throttler();