diff options
author | randomdan <randomdan@localhost> | 2011-03-09 16:43:04 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-03-09 16:43:04 +0000 |
commit | 589f65d5748e0055a534d797c9b98206bafedc57 (patch) | |
tree | 62de5a89db702ba83f14a5a7a91d19535a06a388 /project2/commonObjects.cpp | |
parent | A good start on docs, WTD (diff) | |
download | project2-589f65d5748e0055a534d797c9b98206bafedc57.tar.bz2 project2-589f65d5748e0055a534d797c9b98206bafedc57.tar.xz project2-589f65d5748e0055a534d797c9b98206bafedc57.zip |
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
Diffstat (limited to 'project2/commonObjects.cpp')
-rw-r--r-- | project2/commonObjects.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<bySOName>::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); |