You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2007/02/08 13:33:21 UTC
svn commit: r504871 - in
/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python:
PythonServiceWrapper.cpp model/PythonImplementation.cpp
Author: ajborley
Date: Thu Feb 8 04:33:20 2007
New Revision: 504871
URL: http://svn.apache.org/viewvc?view=rev&rev=504871
Log:
Small logging improvements in Python extension
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp
Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp?view=diff&rev=504871&r1=504870&r2=504871
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp Thu Feb 8 04:33:20 2007
@@ -843,14 +843,14 @@
Py_XDECREF(elementTreeModule);
Py_XDECREF(elementTreeModuleName);
+ string msg = "Error whilst calling Python function "+operation.getName();
if(PyErr_Occurred())
{
PyErr_Print();
}
- string msg = "Error whilst calling Python module";
+
throwException(ServiceInvocationException, msg.c_str());
}
-
}
else
{
@@ -1005,7 +1005,7 @@
PyErr_Print();
}
string msg = "Failed to load the sca_proxy Python module - has it been successfully installed?\nReferences from Python components will not be supported";
- logwarning(0, msg.c_str());
+ logwarning(msg.c_str());
}
else
{
Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp?view=diff&rev=504871&r1=504870&r2=504871
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp Thu Feb 8 04:33:20 2007
@@ -91,7 +91,8 @@
{
ComponentType::addPropertyType(propertyName, "http://www.w3.org/2001/XMLSchema#string", false, NULL);
// Just added it so it should now be available
- prop = ComponentType::findPropertyType(propertyName);
+ prop = ComponentType::findPropertyType(propertyName);
+ loginfo("Added string property named %s to Python component", propertyName.c_str());
}
return prop;
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org