Ignore:
Timestamp:
2001-01-26T07:26:45+13:00 (23 years ago)
Author:
cs025
Message:

Included CORBA branch for first time

File:
1 edited

Legend:

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

    r1856 r1860  
    890890    if (!a->do_action (args, &protocols, &browsers, disp, (*outconverter), contentout, logout))
    891891      return false;
    892 
    893892  } else {
    894893    // the action was not found!!
     
    11381137  bool first = true;
    11391138
     1139  cout << "Action is " << a->get_action_name() << endl;
     1140
    11401141  text_tmap::iterator params_here = configinfo.pageparams.begin();
    11411142  text_tmap::iterator params_end = configinfo.pageparams.end();
     
    11561157  disp.openpage(pageparams, configinfo.macroprecedence);
    11571158
    1158 
    11591159  // define external macros for each action
    11601160  actionptrmap::iterator actionhere = actions.begin ();
     
    11631163  while (actionhere != actionend) {
    11641164    assert ((*actionhere).second.a != NULL);
    1165     if ((*actionhere).second.a != NULL)
     1165    if ((*actionhere).second.a != NULL) {
    11661166      (*actionhere).second.a->define_external_macros (disp, args, &protocols, logout);
     1167    }
    11671168    actionhere++;
    11681169  }
     
    11851186  disp.setmacro ("httpimg", "Global", configinfo.httpimg);
    11861187  disp.setmacro ("httpprefix", "Global", configinfo.httpprefix);
     1188
     1189  if (!collection.empty()) {
     1190    // DB // ****
     1191    ColInfoResponse_t cinfo;
     1192    comerror_t err;
     1193    recptproto *collectproto = protocols.getrecptproto (collection, logout);
     1194    if (collectproto != NULL) {
     1195      collectproto->get_collectinfo (collection, cinfo, err, logout);
     1196      text_t httpcollection
     1197    = "http://" + cinfo.httpdomain + cinfo.httpprefix
     1198        +"/collect/" + collection;
     1199     
     1200      disp.setmacro ("httpcollection", "Global", httpcollection);
     1201    }
     1202  }
     1203
    11871204  text_t compressedoptions = get_compressed_arg(args, logout);
    11881205  disp.setmacro ("compressedoptions", "Global", dm_safe(compressedoptions));
     
    12551272    }
    12561273      }
     1274
     1275      text_t iconcollection;
     1276      disp.expandstring ("Global", "_iconcollection_", iconcollection);
     1277      if (!iconcollection.empty())
     1278    {
     1279      if (iconcollection[0]=='/')
     1280        {
     1281          // local but with full path
     1282          ColInfoResponse_t cinfo;
     1283          comerror_t err;
     1284          collectproto->get_collectinfo (collection, cinfo, err, logout);
     1285          iconcollection = "http://" + cinfo.httpdomain + iconcollection;
     1286          disp.setmacro("iconcollection","Global",iconcollection);
     1287        }
     1288    }
    12571289    }
    12581290  }
     
    13041336  }
    13051337}
     1338
     1339
Note: See TracChangeset for help on using the changeset viewer.