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.497 2001/11/27 18:06:44 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.498 2002/01/29 21:17:34 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:489:    array (RoxenModule) prov = get_providers(provides);    if(sizeof(prov))    return prov[0];    return 0;   }      array(mixed) map_providers(string provides, string fun, mixed ... args)   //! Maps the function "fun" over all matching provider modules.   {    array (RoxenModule) prov = get_providers(provides); -  array error; +  mixed error;    array a=({ });    mixed m;    foreach(prov, RoxenModule mod)    {    if(!objectp(mod))    continue;    if(functionp(mod[fun]))    error = catch(m=mod[fun](@args)); -  if(arrayp(error)) { -  error[0] = "Error in map_providers(): "+error[0]; -  report_debug(describe_backtrace(error)); +  if(error) { +  report_debug("Error in map_providers(): " + describe_backtrace(error));    }    else    a += ({ m });    error = 0;    }    return a;   }      mixed call_provider(string provides, string fun, mixed ... args)   //! Maps the function "fun" over all matching provider modules and
Roxen.git/server/base_server/configuration.pike:2578:    }   #endif    got_no_delayed_load = -1;    roxen->bootstrap_info->set (0);    return module[id];    }    }       if(module[id] && module[id] != me)    { -  if( module[id]->stop ) -  catch( module[id]->stop() ); - // if( err = catch( disable_module( modname+"#"+id ) ) ) - // report_error(LOCALE->error_disabling_module(moduleinfo->get_name(), - // describe_backtrace(err))); +  if( module[id]->stop ) { +  if (err = catch( module[id]->stop() )) { +  string bt=describe_backtrace(err); +  report_error("disable_module(): " + +  LOC_M(44, "Error while disabling module %s%s"), +  descr, (bt ? ":\n"+bt : "\n"));    } -  +  } +  }       me->set_configuration( this_object() );       module_type = moduleinfo->type;    if (module_type & (MODULE_LOCATION|MODULE_EXTENSION|    MODULE_CONFIG|MODULE_FILE_EXTENSION|MODULE_LOGGER|    MODULE_URL|MODULE_LAST|MODULE_PROVIDER|    MODULE_FILTER|MODULE_TAG|MODULE_FIRST))    {    if(module_type != MODULE_CONFIG)
Roxen.git/server/base_server/configuration.pike:3187:       if (!modules_already_enabled)    {    enabled_modules = retrieve("EnabledModules", this_object());   // roxenloader.LowErrorContainer ec = roxenloader.LowErrorContainer();   // roxenloader.push_compile_error_handler( ec );       array modules_to_process = indices( enabled_modules );    string tmp_string;    -  array err; +  mixed err;    forcibly_added = ([]);    enable_module_batch_msgs = 1;    foreach( modules_to_process, tmp_string )    {    if( !forcibly_added[ tmp_string ] )    if(err = catch( enable_module( tmp_string )))    {    report_error(LOC_M(45, "Failed to enable the module %s. Skipping.")    +"\n%s\n", tmp_string, describe_backtrace(err));    got_no_delayed_load = -1;