Branch: Tag:

1998-11-18

1998-11-18 04:54:36 by Per Hedbor <ph@opera.com>

Better locale support, moved parse_rxml to the configuration object, started workd on the new configuration interface

Rev: server/base_server/cache.pike:1.22
Rev: server/base_server/config/describers.pike:1.58
Rev: server/base_server/config/low_describers.pike:1.28
Rev: server/base_server/configlocale.pike:1.1
Rev: server/base_server/configuration.pike:1.167
Rev: server/base_server/fonts.pike:1.25
Rev: server/base_server/mainconfig.pike:1.116
Rev: server/base_server/module.pike:1.36
Rev: server/base_server/module_support.pike:1.19
Rev: server/base_server/roxen.pike:1.252
Rev: server/base_server/roxenlib.pike:1.89
Rev: server/base_server/roxenloader.pike:1.80
Rev: server/base_server/rxml.pike:1.1
Rev: server/base_server/wizard.pike:1.77
Rev: server/config_actions/cachestatus.pike:1.4
Rev: server/config_actions/debuginformation.pike:1.16
Rev: server/config_actions/feature_list.pike:1.4
Rev: server/config_actions/flush.pike:1.7
Rev: server/config_actions/listfonts.pike:1.4
Rev: server/config_actions/problems.pike:1.12
Rev: server/config_actions/reloadconfiginterface.pike:1.9
Rev: server/etc/include/roxen.h:1.8
Rev: server/etc/roxen_master.pike:1.49
Rev: server/modules/directories/indexfiles.pike:1.7
Rev: server/modules/filters/auto_gzip.pike:1.5
Rev: server/modules/graphics/business_graphics/business.pike:1.110
Rev: server/modules/graphics/counter.pike:1.22
Rev: server/modules/graphics/graphic_text.pike:1.156
Rev: server/modules/graphics/pimage.pike:1.12
Rev: server/modules/graphics/rimage/rimage.pike:1.8
Rev: server/modules/logging/home_logger.pike:1.19
Rev: server/modules/misc/gtext_creator.pike:1.1
Rev: server/modules/misc/language.pike:1.17
Rev: server/modules/misc/mirrorserver.pike:1.14
Rev: server/modules/proxies/ftpgateway.pike:1.26
Rev: server/modules/proxies/gopher.pike:1.15
Rev: server/modules/proxies/wais.pike:1.12
Rev: server/modules/scripting/cgi.pike:1.106
Rev: server/modules/scripting/pikescript.pike:1.30
Rev: server/modules/tags/doc/graphic_text:1.5
Rev: server/modules/tags/htmlparse.pike:1.153
Rev: server/modules/tags/lpctag.pike:1.19
Rev: server/modules/tags/wizard_tag.pike:1.18
Rev: server/protocols/ftp.pike:1.97
Rev: server/protocols/http.pike:1.121
Rev: server/start:1.54

3:    * made by Per Hedbor    */    - constant cvs_version = "$Id: wizard_tag.pike,v 1.17 1998/11/02 07:03:33 per Exp $"; + constant cvs_version = "$Id: wizard_tag.pike,v 1.18 1998/11/18 04:54:31 per Exp $";   constant thread_safe=1;   #include <module.h>   inherit "module";
45:    id->misc->line=-1;    mapping f = ([ "pages":({}) ]);    string pike = ("inherit \"wizard\";\n" + - #if (__VERSION__ >= 0.6) +     sprintf("# "+id->misc->line+" %O\n"    "string name = %O;\n", -  id->not_query, (args->name||"unnamed")) - #else -  "# "+id->misc->line+" \""+id->not_query+"\"\n" -  "string name=\""+(args->name||"unnamed") + "\";\n" - #endif /* __VERSION__ >= 0.6 */ -  ); +  id->not_query, (args->name||"unnamed")));    int p;    foreach(glob("*-label", indices(args)), string a)    { - #if __VERSION__ >= 0.6 +     pike += sprintf("# "+id->misc->line+" %O\n",    id->not_query);    pike += sprintf(" string "+replace(replace(a,"-","_"),({"(",")","+",">"}),    ({"","","",""}))+    " = %O;\n", args[a]); - #else -  pike += ("# "+id->misc->line+" \""+id->not_query+"\"\n"); -  pike += " string "+replace(replace(a,"-","_"),({"(",")","+",">"}), -  ({"","","",""}))+ -  " = \""+replace(args[a], ({"\"","\n","\r", "\\"}), -  ({"\\\"", "\\n", "\\r", "\\\\"}))+"\";\n"; - #endif /* __VERSION__ >= 0.6 */ +     }          if(args->ok)    { - #if __VERSION__ >= 0.6 +     pike += sprintf("# "+id->misc->line+" %O\n", id->not_query);    pike += sprintf("mixed wizard_done(object id)\n"    "{\n"    " id->not_query = %O;\n\""+ -  " return roxen->get_file( id );\n" +  " return id->conf->get_file( id );\n"    "}\n\n",    fix_relative(args->ok, id)); - #else -  pike += ("# "+id->misc->line+" \""+id->not_query+"\"\n"); -  pike += ("mixed wizard_done(object id)\n" -  "{\n" -  " id->not_query = \""+ -  fix_relative(replace(args->ok, ({"\"","\n","\r", "\\"}), -  ({"\\\"", "\\n", "\\r", "\\\\"})),id)+"\";\n" -  " return roxen->get_file( id );\n" -  "}\n\n"); - #endif /* __VERSION__ >= 0.6 */ +     }       parse_html_lines(contents,
101:    "done":internal_done ]),    (int)id->misc->line,f);    if (f->done && !args->ok) { - #if __VERSION__ >= 0.6 +     pike += sprintf("mixed wizard_done(object id)\n"    "{\n"    " return parse_rxml(%O,id);\n"    "}\n", f->done); - #else -  pike += ("mixed wizard_done(object id)\n" -  "{\n" -  " return parse_rxml(\""+replace(f->done, -  ({"\"","\n","\r", "\\"}), -  ({"\\\"", "\\n", "\\r", "\\\\"}))+ -  "\",id);\n" -  "}\n"); - #endif /* __VERSION__ >= 0.6 */ +     }    foreach(f->pages, array q)    { - #if __VERSION__ >= 0.6 +     pike += sprintf("# "+q[1]+" %O\n", id->not_query);    pike += sprintf("string page_"+p+"(object id) {" +    " return parse_rxml(%O,id);\n"    "}\n", q[0]); - #else -  pike += ("# "+q[1]+" \""+id->not_query+"\"\n"); -  pike += ("string page_"+p+"(object id) {" + -  "return parse_rxml(\""+replace(q[0], ({"\"","\n","\r", "\\"}), -  ({"\\\"", "\\n", "\\r", "\\\\"}))+"\",id);}\n"); - #endif /* __VERSION__ >= 0.6 */ +     p++;    }    object w;