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/28 13:24:17 UTC

svn commit: r512725 - in /incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python: PythonServiceWrapper.cpp sca_module.cpp

Author: ajborley
Date: Wed Feb 28 04:24:15 2007
New Revision: 512725

URL: http://svn.apache.org/viewvc?view=rev&rev=512725
Log:
Fixed stupid bug for ElementTree handling in Python extension (foolish, foolish coding by me.)

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/sca_module.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=512725&r1=512724&r2=512725
==============================================================================
--- 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 Wed Feb 28 04:24:15 2007
@@ -805,7 +805,7 @@
                                     PyObject* elementTreeIsElementFunc = PyObject_GetAttrString(elementTreeModule, "iselement");
 
                                     // Call the iselement() function with pValue to check it
-                                    PyObject* pIsElement = PyObject_CallFunction(elementTreeIsElementFunc, "O", pValue);
+                                    pIsElement = PyObject_CallFunction(elementTreeIsElementFunc, "O", pValue);
                                     Py_DECREF(elementTreeIsElementFunc);
                                 }
 

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp?view=diff&rev=512725&r1=512724&r2=512725
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp Wed Feb 28 04:24:15 2007
@@ -319,7 +319,7 @@
                 PyObject* elementTreeIsElementFunc = PyObject_GetAttrString(elementTreeModule, "iselement");
 
                 // Call the iselement() function with pValue to check it
-                PyObject* pIsElement = PyObject_CallFunction(elementTreeIsElementFunc, "O", param);
+                pIsElement = PyObject_CallFunction(elementTreeIsElementFunc, "O", param);
             }
 
             if(PyObject_IsTrue(pIsElement) == 1)



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org