Changeset 261 for trunk


Ignore:
Timestamp:
1999-06-08T16:29:42+12:00 (25 years ago)
Author:
sjboddie
Message:

added argsinfo to the call to check_cgiargs to make it easy to set
args to their default if they're found to be screwed up

Location:
trunk/gsdl/src/recpt
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/action.cpp

    r206 r261  
    1212/*
    1313   $Log$
     14   Revision 1.11  1999/06/08 04:29:41  sjboddie
     15   added argsinfo to the call to check_cgiargs to make it easy to set
     16   args to their default if they're found to be screwed up
     17
    1418   Revision 1.10  1999/03/25 03:06:44  sjboddie
    1519
     
    111115// then the function will return false and no page content
    112116// should be produced based on the arguments.
    113 bool action::check_cgiargs (cgiargsclass &/*args*/, ostream &/*logout*/) {
     117bool action::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &/*args*/,
     118                ostream &/*logout*/) {
    114119  return true;
    115120}
  • trunk/gsdl/src/recpt/action.h

    r206 r261  
    5555  // then the function will return false and no page content
    5656  // should be produced based on the arguments.
    57   virtual bool check_cgiargs (cgiargsclass &args, ostream &logout);
     57  virtual bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
     58                  ostream &logout);
    5859
    5960  // get_cgihead_info determines the cgi header information for
  • trunk/gsdl/src/recpt/documentaction.cpp

    r257 r261  
    1212/*
    1313   $Log$
     14   Revision 1.3  1999/06/08 04:29:37  sjboddie
     15   added argsinfo to the call to check_cgiargs to make it easy to set
     16   args to their default if they're found to be screwed up
     17
    1418   Revision 1.2  1999/05/10 03:40:35  sjboddie
    1519   lots of changes - slowly getting document action sorted out
     
    123127}
    124128
    125 bool documentaction::check_cgiargs (cgiargsclass &/*args*/, ostream &/*logout*/) {
     129bool documentaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &/*args*/,
     130                    ostream &/*logout*/) {
    126131  // don't want to check anything yet.
    127132  return true;
     
    305310  //                        classification to remove the title block
    306311
    307   // _javaimagescontent_     this is the javascript code to shove in to make the
    308   //                         flashy buttons work
     312  // _javaimagescontent_    this is the javascript code to shove in to make the
     313  //                        flashy buttons work
    309314
    310315 
     
    439444 
    440445  if (arg_d.empty() && arg_cl.empty()) {
    441     textout << outconvert << "Document contains no data_document:footer_\n";
     446    textout << outconvert << disp << "Document contains no data_document:footer_\n";
    442447    return true;
    443448  }
  • trunk/gsdl/src/recpt/documentaction.h

    r248 r261  
    2828  text_t get_action_name () {return "d";}
    2929
    30   bool check_cgiargs (cgiargsclass &args, ostream &logout);
     30  bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
     31              ostream &logout);
    3132
    3233  void get_cgihead_info (cgiargsclass &args, response_t &response,
  • trunk/gsdl/src/recpt/pageaction.cpp

    r173 r261  
    1212/*
    1313   $Log$
     14   Revision 1.5  1999/06/08 04:29:35  sjboddie
     15   added argsinfo to the call to check_cgiargs to make it easy to set
     16   args to their default if they're found to be screwed up
     17
    1418   Revision 1.4  1999/02/28 20:00:14  rjmcnab
    1519
     
    5963}
    6064
    61 bool pageaction::check_cgiargs (cgiargsclass &/*args*/, ostream &/*logout*/) {
     65bool pageaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &/*args*/,
     66                ostream &/*logout*/) {
    6267  // don't want to check anything yet.
    6368  return true;
  • trunk/gsdl/src/recpt/pageaction.h

    r173 r261  
    2727  text_t get_action_name () {return "p";}
    2828
    29   bool check_cgiargs (cgiargsclass &args, ostream &logout);
     29  bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
     30              ostream &logout);
    3031
    3132  void get_cgihead_info (cgiargsclass &args, response_t &response,
  • trunk/gsdl/src/recpt/receptionist.cpp

    r248 r261  
    1212/*
    1313   $Log$
     14   Revision 1.13  1999/06/08 04:29:31  sjboddie
     15   added argsinfo to the call to check_cgiargs to make it easy to set
     16   args to their default if they're found to be screwed up
     17
    1418   Revision 1.12  1999/04/30 01:59:42  sjboddie
    1519   lots of stuff - getting documentaction working (documentaction replaces
     
    252256  action *a = actions.getaction (args["a"]);
    253257  if (a != NULL) {
    254     if (!a->check_cgiargs (args, logout)) return false;
     258    if (!a->check_cgiargs (argsinfo, args, logout)) return false;
    255259  } else {
    256260    // the action was not found!!
  • trunk/gsdl/src/recpt/statusaction.cpp

    r226 r261  
    1212/*
    1313   $Log$
     14   Revision 1.13  1999/06/08 04:29:39  sjboddie
     15   added argsinfo to the call to check_cgiargs to make it easy to set
     16   args to their default if they're found to be screwed up
     17
    1418   Revision 1.12  1999/04/06 22:20:35  rjmcnab
    1519   Got browsefilter working.
     
    687691}
    688692
    689 bool statusaction::check_cgiargs (cgiargsclass &/*args*/, ostream &/*logout*/) {
     693bool statusaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &/*args*/,
     694                  ostream &/*logout*/) {
    690695  // don't want to check anything yet.
    691696  return true;
  • trunk/gsdl/src/recpt/statusaction.h

    r200 r261  
    6464  text_t get_action_name () {return "status";}
    6565  void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
    66   bool check_cgiargs (cgiargsclass &args, ostream &logout);
     66  bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
     67              ostream &logout);
    6768  void get_cgihead_info (cgiargsclass &args, response_t &response,
    6869             text_t &response_data, ostream &logout);
Note: See TracChangeset for help on using the changeset viewer.