Bugs item #1671431, was opened at 2007-03-01 00:45
Message generated for change (Comment added) made by cgroves
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1671431&group_id=12867
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: targeted for 2.2beta2
>Status: Closed
>Resolution: Fixed
Priority: 7
Private: No
Submitted By: Petr Gladkikh (batyi)
Assigned to: Nobody/Anonymous (nobody)
Summary: dir function does not work with database connection object
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Charles Groves (cgroves)
Date: 2007-04-25 01:02
Message:
Logged In: YES
user_id=1174327
Originator: NO
Fixed in r3189.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1671431&group_id=12867
|