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

version» Context lines:

Roxen.git/server/modules/tags/wizard_tag.pike:1:   /* This is a Roxen(r) module. Copyright (c) Idonex 1997.    * Released under GPL    * made by Per Hedbor    */    - constant cvs_version = "$Id: wizard_tag.pike,v 1.23 2000/02/10 07:13:28 nilsson Exp $"; + constant cvs_version = "$Id: wizard_tag.pike,v 1.24 2000/02/14 14:22:38 wellhard Exp $";   constant thread_safe=1;   #include <module.h>   inherit "module";   inherit "wizard";      constant module_type = MODULE_PARSER;   constant module_name = "Wizard generator";   constant module_doc = "Generates wizards<p>See &lt;wizard help&gt; for more information\n";      string internal_verify(string t, mapping args, string contents, int l, int ol,
Roxen.git/server/modules/tags/wizard_tag.pike:127:    {    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))    { -  defines[" _error"] = res->error; -  defines[" _extra_heads"] = res->extra_heads; +  id->misc->defines[" _error"] = res->error; +  id->misc->defines[" _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])