Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.128 1999/06/11 15:46:30 grubba Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.129 1999/09/02 18:38:42 per Exp $";   //inherit "roxenlib";      inherit "config/draw_things";      // import Array;   // import Stdio;      string status_row(object node);   string display_tabular_header(object node);   object get_template(string t);
Roxen.git/server/base_server/mainconfig.pike:1100:   }      object module_of(object node)   {    while(node)    {    if(node->type == NODE_MODULE_COPY)    return node->data;    if(node->type == NODE_MODULE_MASTER_COPY)    return node->data->master; +  if(node->type == NODE_CONFIGURATION) +  return node->data;    node = node->up;    }    return roxen;   }      string extract_almost_top(object node)   {    if(!node) return "";    for(;node && (node->up!=root);node=node->up);    if(!node) return "";
Roxen.git/server/base_server/mainconfig.pike:1841:    // Set a variable to a new (or back to an old..) value.    case "set":    mixed tmp;    o->error = 0;    if(sizeof(id->variables))    tmp=decode_form_result(values(id->variables)[0],    o->data[VAR_TYPE], o, id->variables);    else    tmp=0;    if(!module_of(o)) perror("No module for this node.\n"); -  if(!o->error && module_of(o) -  && module_of(o)->check_variable) +  if(!o->error && module_of(o) && module_of(o)->check_variable)    o->error = module_of(o)->check_variable(o->data[VAR_SHORTNAME], tmp); -  +     if(!o->error)    if(!equal(tmp, o->data[VAR_VALUE]))    {    if(!o->original)    o->original = o->data[VAR_VALUE];    o->data[VAR_VALUE]=tmp;    if(equal(o->original, tmp))    o->change(-1);    else if(!o->changed)    o->change(1);