Branch: Tag:

2000-01-18

2000-01-18 15:15:03 by Martin Stjernholm <mast@lysator.liu.se>

Must cache the tag set made by query_tag_set() locally to make it work
in start(), since that's called before build_callers() in rxml.pike.

Rev: server/base_server/module.pike:1.69

1: - /* $Id: module.pike,v 1.68 2000/01/18 14:56:20 mast Exp $ */ + /* $Id: module.pike,v 1.69 2000/01/18 15:15:03 mast Exp $ */   #include <module.h>   #include <request_trace.h>   
655:    return m;   }    + private RXML.TagSet module_tag_set; +    RXML.TagSet query_tag_set()   { -  +  if (!module_tag_set) {    array(function|program|object) tags =    filter (rows (this_object(), -  glob ("Tag*", -  indices (this_object()))), +  glob ("Tag*", indices (this_object()))),    functionp);    for (int i = 0; i < sizeof (tags); i++)    if (programp (tags[i]))
672:    if (!tags[i]->is_RXML_Tag) tags[i] = 0;    }    tags -= ({0}); -  return -  my_configuration()->module_tag_sets[this_object()] || +  module_tag_set =    (this_object()->ModuleTagSet || RXML.TagSet) (module_identifier(), tags);    } -  +  return module_tag_set; + }      mixed get_value_from_file(string path, string index, void|string pre)   {