Changeset 1148


Ignore:
Timestamp:
2000-05-04T17:18:46+12:00 (24 years ago)
Author:
sjboddie
Message:

attempting to get end-user collection building to work under windows

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

Legend:

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

    r1129 r1148  
    434434
    435435  text_tarray wizard_split;
    436   const text_t& wizard = (args["wizard"]=="") ? (text_t)"buildcol" : args["wizard"];
     436  const text_t wizard = (args["wizard"].empty()) ? "buildcol" : args["wizard"];
    437437  splitchar(wizard.begin(),wizard.end(),':',wizard_split);
    438   const text_t& wizard_last = wizard_split.back();
     438  const text_t wizard_last = wizard_split.back();
    439439 
    440440  if (wizard_last != "buildframe")
     
    449449      text_t dirname = (args["bc1dirname"] == "") ? (text_t)"unknown" : args["bc1dirname"];
    450450      text_t tmpname = dirname+"_XXXXXX";
    451       if (mktemp(tmpname.getcstr())==NULL)
    452     {
    453       logout << "Failed to create temporary filename" << endl;
    454     }
     451      char *cstr_tmpname = tmpname.getcstr();
     452      if (mktemp(cstr_tmpname)==NULL)
     453    logout << "Failed to create temporary filename" << endl;
     454
     455      delete cstr_tmpname;
     456
    455457      disp.setmacro("bcargtmpname","build",tmpname);
    456458
     
    461463      textout << outconvert << disp << headmess << content << "_build:framefooter_\n";
    462464      text_t cmd = filename_cat(gsdlhome, "cgi-bin", "webpage_buildcol.pl");
    463       cmd += " gsdlhome=\""+args["gsdlhome"]+"\" httpbuild=\""+args["httpbuild"]+"\"";
     465      cmd += " gsdlhome=\""+gsdlhome+"\" httpbuild=\""+args["httpbuild"]+"\"";
    464466      cmd += " bc1copydata=\""+args["bc1copydata"]+"\"";
    465467      cmd += " bc1doimport=\""+args["bc1doimport"]+"\"";
  • trunk/gsdl/src/recpt/documentaction.cpp

    r1079 r1148  
    2828/*
    2929   $Log$
     30   Revision 1.38  2000/05/04 05:18:46  sjboddie
     31   attempting to get end-user collection building to work under windows
     32
    3033   Revision 1.37  2000/04/07 04:40:44  sjboddie
    3134   Reverted back to old DocumentHeader, DocumentTitles, DocumentImages etc.
     
    177180#include "querytools.h"
    178181#include "unitool.h"
    179 #include "htmlutils.h"
     182#include "gsdltools.h"
    180183
    181184documentaction::documentaction () {
  • trunk/gsdl/src/recpt/receptionist.cpp

    r1089 r1148  
    2828/*
    2929   $Log$
     30   Revision 1.49  2000/05/04 05:18:46  sjboddie
     31   attempting to get end-user collection building to work under windows
     32
    3033   Revision 1.48  2000/04/14 02:52:06  sjboddie
    3134   tidied up error messaging and set up some debugging info to be output
     
    231234#include "cgiutils.h"
    232235#include "htmlutils.h"
     236#include "gsdltools.h"
    233237#include "OIDtools.h"
    234238#include <assert.h>
     
    12301234  text_t &collection = args["c"];
    12311235
    1232   disp.setmacro ("gsdlhome", "Global", configinfo.gsdlhome);
     1236  disp.setmacro ("gsdlhome", "Global", dm_safe(configinfo.gsdlhome));
    12331237  disp.setmacro ("gwcgi", "Global", configinfo.gwcgi);
    12341238  disp.setmacro ("httpimg", "Global", configinfo.httpimg);
Note: See TracChangeset for help on using the changeset viewer.