Ignore:
Timestamp:
2000-02-22T11:01:02+13:00 (24 years ago)
Author:
sjboddie
Message:

gsdlhome now comes from gsdlsite.cfg

File:
1 edited

Legend:

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

    r822 r963  
    3030#include "htmlutils.h"
    3131#include "buildaction.h"
    32 #include "gsdlhome.h"
    3332
    3433///////////////
     
    103102    logout << "The page action does not contain information\n"
    104103           << "about any receptionists. The method set_receptionist\n"
    105            <<   "was probably not called from the module which instantiated\n"
    106            <<   "this page action.\n";
     104           << "was probably not called from the module which instantiated\n"
     105           << "this page action.\n";
    107106    return;
    108107  }
     
    111110  if (rprotolist == NULL) return;
    112111 
    113   const recptconf &rcinfo = recpt->get_configinfo ();
    114 
    115112  // build up javascript and HTML code useful in web forms
    116113  text_t first_dirname = "";
     
    193190        // check to see if the "collection" is writable
    194191        text_t cfg_fname
    195           = filename_cat(GSDL_GSDLHOME,"collect",*collist_here,"etc","collect.cfg");
     192          = filename_cat(gsdlhome, "collect", *collist_here, "etc", "collect.cfg");
    196193        if (!file_writable(cfg_fname))
    197194          {
     
    276273  // set macro cfgperm based on whether config file can be read or no
    277274  text_t dirname = (args["bc1dirname"] == "") ? first_dirname : args["bc1dirname"];
    278   text_t cfg_fname = filename_cat(rcinfo.gsdlhome,"collect",dirname,"etc","collect.cfg");
     275  text_t cfg_fname = filename_cat(gsdlhome, "collect", dirname, "etc", "collect.cfg");
    279276  text_t cfgperm = (file_writable(cfg_fname)) ? "read/write" : "readonly";
    280277  disp.setmacro("cfgperm","build",cfgperm);
     
    288285      // read in collect.cfg     
    289286      text_t cfg_fname
    290     = filename_cat(GSDL_GSDLHOME,"collect",dirname,"etc","collect.cfg");
     287    = filename_cat(gsdlhome, "collect", dirname, "etc", "collect.cfg");
    291288      ifstream cfg_ifs (cfg_fname.getcstr(), ios::in | ios::nocreate);
    292289      if (cfg_ifs)
     
    323320
    324321      // read in collect.bld
    325       text_t bld_fname = filename_cat(rcinfo.gsdlhome,"log",dirname+".bld");
     322      text_t bld_fname = filename_cat(gsdlhome, "log", dirname+ ".bld");
    326323      ifstream bld_ifs (bld_fname.getcstr(), ios::in | ios::nocreate);
    327324      if (bld_ifs)
     
    356353                 ostream &logout) {
    357354
     355  // make sure we know about a receptionist
     356  if (recpt == NULL) {
     357    logout << "The page action does not contain information\n"
     358           << "about any receptionists. The method set_receptionist\n"
     359           << "was probably not called from the module which instantiated\n"
     360           << "this page action.\n";
     361    return false;
     362  }
    358363
    359364  if (args["bca"] == "newcol") {
     
    419424                   outconvertclass &outconvert, ostream &textout,
    420425                   ostream &logout) {
     426
     427
    421428
    422429
     
    448455 
    449456      textout << outconvert << disp << headmess << content << "_build:framefooter_\n";
    450 
    451       text_t cmd = filename_cat(GSDL_GSDLHOME,"cgi-bin","webpage_buildcol.pl");
     457      text_t cmd = filename_cat(gsdlhome, "cgi-bin", "webpage_buildcol.pl");
    452458      cmd += " gsdlhome=\""+args["gsdlhome"]+"\" httpbuild=\""+args["httpbuild"]+"\"";
    453459      cmd += " bc1copydata=\""+args["bc1copydata"]+"\"";
Note: See TracChangeset for help on using the changeset viewer.