Ignore:
Timestamp:
2008-07-09T13:12:15+12:00 (16 years ago)
Author:
davidb
Message:

Introduction of 'collecthome' which parallels 'gsdlhome' to allow the toplevel collect folder to be outside of the gsdlhome area

File:
1 edited

Legend:

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

    r15589 r16310  
    129129static void page_errorcollect (const text_t &gsdlhome, text_t &errorpage, bool debug) {
    130130
    131   text_t collectdir = filename_cat (gsdlhome, "collect");
     131  text_t collecthome = filename_cat (gsdlhome, "collect");
    132132
    133133  text_t errortext = "No valid collections were found: Check that your collect directory\n";
    134   errortext += "(" + collectdir + ") is readable and contains at least one valid collection.\n";
     134  errortext += "(" + collecthome + ") is readable and contains at least one valid collection.\n";
    135135  errortext += "Note that modelcol is NOT a valid collection.\n";
    136136  errortext += "If the path to your collect directory is wrong edit the 'gsdlhome' field\n";
     
    301301  bool colspec = false;
    302302  if (configinfo.collection.empty()) {
    303     cout << "Receptionist is running in \"general\" (i.e. not \"collection\n"
     303    cout << "Receptionist is running in \"general\" (i.e. not \"collection "
    304304     << "specific\") mode.\n";
    305305  } else {
     
    311311  }
    312312 
    313   cout << text_t2ascii << "gsdlhome=" << configinfo.gsdlhome << "\n";
     313  cout << text_t2ascii << "  gsdlhome=" << configinfo.gsdlhome << "\n";
     314  if (!configinfo.collecthome.empty())
     315    cout << text_t2ascii << "  collecthome=" << configinfo.collecthome << "\n";
    314316  if (!configinfo.dbhome.empty())
    315     cout << text_t2ascii << "dbhome=" << configinfo.dbhome << "\n";
    316   cout << text_t2ascii << "httpprefix=" << configinfo.httpprefix << "\n";
    317   cout << text_t2ascii << "httpimg=" << configinfo.httpimg << "\n";
    318   cout << text_t2ascii << "gwcgi=" << configinfo.gwcgi << "\n"
     317    cout << text_t2ascii << "  dbhome=" << configinfo.dbhome << "\n";
     318  cout << text_t2ascii << "  httpprefix=" << configinfo.httpprefix << "\n";
     319  cout << text_t2ascii << "  httpimg=" << configinfo.httpimg << "\n";
     320  cout << text_t2ascii << "  gwcgi=" << configinfo.gwcgi << "\n\n"
    319321       << "  Note that unless gwcgi has been set from a configuration\n"
    320322       << "  file it is dependent on environment variables set by your\n"
     
    483485  // read in the configuration files.
    484486  text_t gsdlhome;
     487  text_t collecthome;
    485488  configurator gsdlconfigurator(&recpt);
    486   if (!site_cfg_read (gsdlconfigurator, gsdlhome, maxrequests)) {
     489  if (!site_cfg_read (gsdlconfigurator, gsdlhome, collecthome, maxrequests)) {
    487490    // couldn't find the site configuration file
    488491    page_errorsitecfg (errorpage, debug, 0);
     
    493496    // gsdlhome not a valid directory
    494497    page_errorsitecfg (errorpage, debug, 1);
    495   } else if (!main_cfg_read (recpt, gsdlhome, collection)) {
     498  } else if (!main_cfg_read (recpt, gsdlhome, collecthome, collection)) {
    496499    // couldn't find the main configuration file
    497500    page_errormaincfg (gsdlhome, collection, debug, errorpage);
Note: See TracChangeset for help on using the changeset viewer.