Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.527 2002/11/05 18:09:54 anders Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.528 2002/12/10 18:31:07 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:2882:    got_no_delayed_load = 1;       roxen->bootstrap_info->set (0);    return me;   }      void call_start_callbacks( RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module )   { -  if(!me) return; -  if(!moduleinfo) return; -  if(!module) return; -  +     call_low_start_callbacks( me, moduleinfo, module ); -  -  mixed err; -  if((me->start) && (err = catch( me->start(0, this_object()) ) ) ) -  { - #ifdef MODULE_DEBUG -  if (enable_module_batch_msgs) -  report_debug("\bERROR\n"); - #endif -  string bt=describe_backtrace(err); -  report_error(LOC_M(41, "Error while initiating module copy of %s%s"), -  moduleinfo->get_name(), (bt ? ":\n"+bt : "\n")); -  got_no_delayed_load = -1; +  call_high_start_callbacks (me, moduleinfo);   } -  if( inited && me->ready_to_receive_requests ) -  if( mixed q = catch( me->ready_to_receive_requests( this_object() ) ) ) -  { - #ifdef MODULE_DEBUG -  if (enable_module_batch_msgs) report_debug("\bERROR\n"); - #endif -  report_error( "While calling ready_to_receive_requests:\n"+ -  describe_backtrace( q ) ); -  got_no_delayed_load = -1; -  } - } +       void call_low_start_callbacks( RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module )   {    if(!me) return;    if(!moduleinfo) return;    if(!module) return;       int module_type = moduleinfo->type, pr;
Roxen.git/server/base_server/configuration.pike:3020:       if(module_type & MODULE_FILTER)    pri[pr]->filter_modules += ({ me });       if(module_type & MODULE_FIRST)    pri[pr]->first_modules += ({ me });       invalidate_cache();   }    + void call_high_start_callbacks (RoxenModule me, ModuleInfo moduleinfo) + { +  // This is icky, but I don't know if it's safe to remove. /mast +  if(!me) return; +  if(!moduleinfo) return; +  +  mixed err; +  if((me->start) && (err = catch( me->start(0, this_object()) ) ) ) +  { + #ifdef MODULE_DEBUG +  if (enable_module_batch_msgs) +  report_debug("\bERROR\n"); + #endif +  string bt=describe_backtrace(err); +  report_error(LOC_M(41, "Error while initiating module copy of %s%s"), +  moduleinfo->get_name(), (bt ? ":\n"+bt : "\n")); +  got_no_delayed_load = -1; +  } +  if( inited && me->ready_to_receive_requests ) +  if( mixed q = catch( me->ready_to_receive_requests( this_object() ) ) ) +  { + #ifdef MODULE_DEBUG +  if (enable_module_batch_msgs) report_debug("\bERROR\n"); + #endif +  report_error( "While calling ready_to_receive_requests:\n"+ +  describe_backtrace( q ) ); +  got_no_delayed_load = -1; +  } + } +    // Called from the administration interface.   string check_variable(string name, mixed value)   {    switch(name)    {   // case "MyWorldLocation":   // if(strlen(value)<7 || value[-1] != '/' ||   // !(sscanf(value,"%*s://%*s/")==2))   // return LOCALE->url_format();   // return 0;