Message1521
With latest beta 2.2 (source revision 3133) I have created database connection object as follows:
dbConn = zxJDBC.connect(uri, username, password, driver)
However subsequent dir(dbConn) causes following exception
AttributeError: 'list' object has no attribute 'keys'
at org.python.core.Py.AttributeError(Unknown Source)
at org.python.core.PyObject.noAttributeError(Unknown Source)
at org.python.core.PyObject.__getattr__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at org.python.core.PyDictionary.dict_update(Unknown Source)
at org.python.core.PyDictionary.update(Unknown Source)
at org.python.core.PyObject.addKeys(Unknown Source)
at org.python.core.PyObject.__rawdir__(Unknown Source)
at org.python.core.PyObject.__dir__(Unknown Source)
at org.python.core.__builtin__.dir(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx0.f$0(src/py/main.py:107)
at org.python.pycode._pyx0.call_function(src/py/main.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.core.__builtin__.execfile_flags(Unknown Source)
at org.python.util.PythonInterpreter.execfile(Unknown Source)
---
Exception should not be thrown as dir(x) is expected to work with any Python object.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:46 | admin | link | issue1671431 messages |
2008-02-20 17:17:46 | admin | create | |
|