On Apr 11, 2006, at 2:33 PM, Uwe Grauer wrote:

  File "/home/uwe/src/dabo/dabo/db/dbFirebird.py", line 202, in
massageDescription
    cursor.description = tuple([(elem[0].lower(), elem[1], elem[2],
TypeError: attribute 'description' of 'kinterbasdb.Cursor' objects is
not writable
-------------------------------------------

This indicates that dabo is trying to modify a kinterbasdb class.
It's questionable, but shouldn't this be fixed elsewhere?
dabo should apply lower where it actually uses the variable.

If you think, that it should be possible to modify the cursor variables,
this might be even a bug and should be reported back to kinterbasdb.

The 'massageDescription()' method should only be used for cursors that allow their 'description' attribute to be modified. According to the dbapi, 'description' is read-only, so one change I was planning on making is adding a separate attribute to hold the 'massaged' description instead.

        I'll try to get a fix out for this today.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to