From 589f65d5748e0055a534d797c9b98206bafedc57 Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 9 Mar 2011 16:43:04 +0000 Subject: Allow specifying all sorts of previously hardcoded things, most importantly paths Rework the CGI stage structure to support custom presentations in the event of errors Changes to the Jamfile to ensure each component is complete in itself --- project2/commonObjects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'project2/commonObjects.cpp') diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp index b6a3b7d..d661588 100644 --- a/project2/commonObjects.cpp +++ b/project2/commonObjects.cpp @@ -1,4 +1,5 @@ #include "commonObjects.h" +#include "appEngine.h" #include "xmlObjectLoader.h" #include "xmlScriptParser.h" @@ -21,9 +22,9 @@ CommonObjects::getSource(const std::string & name) const CommonObjects::DataSources::index::type::const_iterator CommonObjects::loadDataSource(const std::string & name) const { - XmlScriptParser xml("datasources", name, true); + XmlScriptParser xml(ApplicationEngine::getCurrent()->env()->getDatasourceRoot(), name, true); - LoaderBase loader("http://project2.randomdan.homeip.net", true); + LoaderBase loader(ApplicationEngine::getCurrent()->env()->getXmlNamespace(), true); loader.supportedStorers.insert(Storer::into(&datasources)); loader.collectAll(xml.get_document()->get_root_node(), false); -- cgit v1.2.3