Branch: Tag:

1998-02-20

1998-02-20 11:16:41 by Per Hedbor <ph@opera.com>

More profiling

Rev: server/base_server/configuration.pike:1.97
Rev: server/base_server/mainconfig.pike:1.96
Rev: server/base_server/roxen.pike:1.169
Rev: server/base_server/wizard.pike:1.51
Rev: server/config_actions/resolv.pike:1.2
Rev: server/modules/graphics/graphic_text.pike:1.104
Rev: server/modules/tags/htmlparse.pike:1.81
Rev: server/modules/tags/wizard_tag.pike:1.4

1: - /* $Id: wizard.pike,v 1.50 1998/02/20 00:58:14 per Exp $ + /* $Id: wizard.pike,v 1.51 1998/02/20 11:16:36 per Exp $    * name="Wizard generator";    * doc="This file generats all the nice wizards";    */
272:    }    return max_page+1;   } + #define Q(X) replace(X,({"<",">","&","\""}),({"&lt;","&gt;","&amp;","&quote;"}))    -  + #define PAGE Q((this_object()->page_label?this_object()->page_label:"Page")) + #define OK Q((this_object()->ok_label?this_object()->ok_label:"Ok")) + #define CANCEL Q((this_object()->cancel_label?this_object()->cancel_label:"Cancel")) + #define NEXT Q((this_object()->next_label?this_object()->next_label:"Next ->")) + #define PREVIOUS Q((this_object()->previous_label?this_object()->previous_label:"<- Previous")) + #define COMPLETED Q((this_object()->completed_label?this_object()->completed_label:"Completed")) +    string parse_wizard_page(string form, object id, string wiz_name)   {    int max_page = num_pages(wiz_name)-1;
296:    "<font size=+2>"+make_title()+"</font>"    " </td>\n<td align=right>"+    (wiz_name=="done" -  ?"Completed" -  :(max_page?"Page "+(page+1)+"/"+(max_page+1):""))+ +  ?COMPLETED +  :(max_page?PAGE+(page+1)+"/"+(max_page+1):""))+    "</td>\n"    " \n<td align=right>"+    (foo->help && !id->variables->help?
315:    "\n</td></tr></table>\n"    " <table width=100%><tr><td width=33%>"+    ((page>0 && wiz_name!="done")? -  " <input type=submit name=prev_page value=\"<- Previous\">":"")+ +  " <input type=submit name=prev_page value=\""+PREVIOUS+"\">":"")+    "</td><td width=33% align=center >"+    (wiz_name!="done"    ?((page==max_page -  ?" <input type=submit name=ok value=\" Ok \">" +  ?" <input type=submit name=ok value=\" "+OK+" \">"    :"")+ -  " <input type=submit name=cancel value=\" Cancel \">") -  :" <input type=submit name=cancel value=\" Ok \">")+ +  " <input type=submit name=cancel value=\" "+CANCEL+" \">") +  :" <input type=submit name=cancel value=\" "+OK+" \">")+    "</td>"    "</td><td width=33% align=right >"+    ((page!=max_page && wiz_name!="done")? -  " <input type=submit name=next_page value=\"Next ->\">":"")+ +  " <input type=submit name=next_page value=\""+NEXT+"\">":"")+    "</td></tr></table>"    " </td><tr>\n"    " </table>\n"
422:    // catch {    if(!wizards[dir+act]) wizards[dir+act]=compile_file(dir+act)(@args);    // }; -  if(_master->errrors && strlen(_master->errors)) err+=_master->errors; + // if(_master->errrors && strlen(_master->errors)) err+=_master->errors;    // _master->set_inhibit_compile_errors(0);    // if(!wizards[dir+act]) throw("Failed to compile "+act+"\n");    return wizards[dir+act];