Roxen.git / server / modules / tags / wizard_tag.pike

version» Context lines:

Roxen.git/server/modules/tags/wizard_tag.pike:1:   // This is a roxen module. Copyright © 1997 - 2001, Roxen IS.   // Released under GPL   // made by Per Hedbor    - constant cvs_version = "$Id: wizard_tag.pike,v 1.30 2001/09/03 18:52:22 nilsson Exp $"; + constant cvs_version = "$Id: wizard_tag.pike,v 1.31 2001/11/23 21:29:42 mast Exp $";   constant thread_safe=1;   #include <module.h>   inherit "module";   inherit "wizard";      constant module_type = MODULE_TAG;   constant module_name = "Tags: Wizard generator";   constant module_doc =   #"Provides the <tt>&lt;wizard&gt;</tt> tag that is used to create wizard   like user interface. Each wizard can contain several pages with form. The
Roxen.git/server/modules/tags/wizard_tag.pike:140:    {    old_wizard = w = compile_string(pike)();    old_pike = pike;    }          mixed res = w->wizard_for(id,fix_relative(args->cancel||args->done||"",id));       if(mappingp(res))    { -  id->misc->defines[" _error"] = res->error; -  id->misc->defines[" _extra_heads"] = res->extra_heads; +  RXML_CONTEXT->set_misc (" _error", res->error); +  RXML_CONTEXT->set_misc (" _extra_heads", res->extra_heads);    return res->data||(res->file&&res->file->read())||"";    }    return res;   }      string tag_wizard_error(string t, mapping args, object id,    object file, mapping defines)   {    if(id->misc->__wizard_error__ && args->id &&    id->misc->__wizard_error__[args->id])