diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-05 10:54:48 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-05 10:54:48 +0000 |
commit | 794473ca1924ddbc0a1e8bebe6f0724bf7d2e04b (patch) | |
tree | abd144716bc25b9580bef9205e7fed4deb138a53 /sca-cpp/trunk/modules/server/mod-eval.cpp | |
parent | aa27694514363589150efe13249ce9ea39694d63 (diff) |
Integrated python support with HTTPD server module. Changed test case to use a python component implementation.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895982 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/server/mod-eval.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/server/mod-eval.cpp b/sca-cpp/trunk/modules/server/mod-eval.cpp index dbfe8b6221..34c1f00cba 100644 --- a/sca-cpp/trunk/modules/server/mod-eval.cpp +++ b/sca-cpp/trunk/modules/server/mod-eval.cpp @@ -38,6 +38,7 @@ #include "../http/httpd.hpp" #include "mod-scheme.hpp" #include "mod-cpp.hpp" +#include "mod-python.hpp" extern "C" { extern module AP_MODULE_DECLARE_DATA mod_tuscany_eval; @@ -288,6 +289,8 @@ const list<value> proxies(const list<value>& refs, const string& base) { const failable<lambda<value(const list<value>&)> > readImplementation(const string& itype, const string& path, const list<value>& px) { if (contains(itype, ".scheme")) return modscheme::readImplementation(path, px); + if (contains(itype, ".python")) + return modpython::readImplementation(path, px); if (contains(itype, ".cpp")) return modcpp::readImplementation(path, px); return mkfailure<lambda<value(const list<value>&)> >(string("Unsupported implementation type: ") + itype); |