Changeset 1860 for trunk/gsdl/src/recpt/receptionist.cpp
- Timestamp:
- 2001-01-26T07:26:45+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r1856 r1860 890 890 if (!a->do_action (args, &protocols, &browsers, disp, (*outconverter), contentout, logout)) 891 891 return false; 892 893 892 } else { 894 893 // the action was not found!! … … 1138 1137 bool first = true; 1139 1138 1139 cout << "Action is " << a->get_action_name() << endl; 1140 1140 1141 text_tmap::iterator params_here = configinfo.pageparams.begin(); 1141 1142 text_tmap::iterator params_end = configinfo.pageparams.end(); … … 1156 1157 disp.openpage(pageparams, configinfo.macroprecedence); 1157 1158 1158 1159 1159 // define external macros for each action 1160 1160 actionptrmap::iterator actionhere = actions.begin (); … … 1163 1163 while (actionhere != actionend) { 1164 1164 assert ((*actionhere).second.a != NULL); 1165 if ((*actionhere).second.a != NULL) 1165 if ((*actionhere).second.a != NULL) { 1166 1166 (*actionhere).second.a->define_external_macros (disp, args, &protocols, logout); 1167 } 1167 1168 actionhere++; 1168 1169 } … … 1185 1186 disp.setmacro ("httpimg", "Global", configinfo.httpimg); 1186 1187 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 1187 1204 text_t compressedoptions = get_compressed_arg(args, logout); 1188 1205 disp.setmacro ("compressedoptions", "Global", dm_safe(compressedoptions)); … … 1255 1272 } 1256 1273 } 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 } 1257 1289 } 1258 1290 } … … 1304 1336 } 1305 1337 } 1338 1339
Note:
See TracChangeset
for help on using the changeset viewer.