diff options
author | randomdan <randomdan@localhost> | 2013-03-28 20:55:37 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-03-28 20:55:37 +0000 |
commit | 41746a02f9c0f481e208f79e87c77b8cbe3a7e67 (patch) | |
tree | a91df241d062ab3b093e769699614cac56e89fdb /project2/common/variables | |
parent | Move pwd out of common into files (diff) | |
download | project2-41746a02f9c0f481e208f79e87c77b8cbe3a7e67.tar.bz2 project2-41746a02f9c0f481e208f79e87c77b8cbe3a7e67.tar.xz project2-41746a02f9c0f481e208f79e87c77b8cbe3a7e67.zip |
Strip all uri parameter stuff from common, make it cgi only
Add component to get a unique cgi request ID
Change file presenter cache to use a configurable component to determine its ID
Diffstat (limited to 'project2/common/variables')
-rw-r--r-- | project2/common/variables/uri.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/project2/common/variables/uri.cpp b/project2/common/variables/uri.cpp deleted file mode 100644 index c5e596f..0000000 --- a/project2/common/variables/uri.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include <pch.hpp> -#include "../variables.h" -#include "../scriptLoader.h" -#include "../scriptStorage.h" -#include "../appEngine.h" - -/// Variable implementation to access URI path fragments -class VariableUri : public VariableImplDyn { - public: - VariableUri(ScriptNodePtr e) : - VariableImplDyn(e), - index(e, "index") - { - } - VariableType value() const - { - try { - return ApplicationEngine::getCurrent()->env()->getParamUri(index()); - } - catch (UriElementOutOfRange) { - if (!defaultValue) { - throw; - } - return (*defaultValue)(); - } - } - private: - Variable index; -}; -DECLARE_COMPONENT_LOADER("uri", VariableUri, VariableLoader); - |