You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/02/12 07:42:59 UTC
svn commit: r506329 -
/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
Author: jsdelfino
Date: Sun Feb 11 22:42:58 2007
New Revision: 506329
URL: http://svn.apache.org/viewvc?view=rev&rev=506329
Log:
Simplified parsing of implementation extension
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp?view=diff&rev=506329&r1=506328&r2=506329
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp Sun Feb 11 22:42:58 2007
@@ -61,32 +61,24 @@
{
logentry();
- string implType = scdlImplementation->getType().getName();
- if (implType == "PythonImplementation")
+ string module = scdlImplementation->getCString("module");
+ string path = scdlImplementation->getCString("path");
+ string className = scdlImplementation->getCString("class");
+ string scopeName = scdlImplementation->getCString("scope");
+
+ PythonImplementation::Scope scope;
+ if (scopeName == "composite")
{
- string module = scdlImplementation->getCString("module");
- string path = scdlImplementation->getCString("path");
- string className = scdlImplementation->getCString("class");
- string scopeName = scdlImplementation->getCString("scope");
-
- PythonImplementation::Scope scope;
- if (scopeName == "composite")
- {
- scope = PythonImplementation::COMPOSITE;
- }
- else
- {
- scope = PythonImplementation::STATELESS;
- }
-
- PythonImplementation* pythonImpl = new PythonImplementation(composite, module, path, className, scope);
-
- return pythonImpl;
+ scope = PythonImplementation::COMPOSITE;
}
else
{
- return NULL;
+ scope = PythonImplementation::STATELESS;
}
+
+ PythonImplementation* pythonImpl = new PythonImplementation(composite, module, path, className, scope);
+
+ return pythonImpl;
}
} // End namespace python
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org