Uwe Grauer wrote:
> Paul McNett wrote:
>> Change that line 873 in dBizobj.py from 'raise dException.DBQueryException,
>> e' to
>> 'raise'. Hopefully that'll give you the traceback from kinterbasdb.
>>
>
> There is no better trace from kinterbasdb:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dFormMixin.py",
> line 180, in __onWxActivate
> self.raiseEvent(dEvents.Activate, evt)
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py",
> line 925, in raiseEvent
> super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
> **kwargs)
> File "/usr/lib/python2.5/site-packages/dabo/lib/eventMixin.py", line
> 92, in raiseEvent
> bindingFunction(event)
> File "/home/uwe/mysrc/ugfw/fwadm/BrwPerForm.py", line 53, in onActivate
> self.requery()
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py", line
> 456, in requery
> response = bizobj.requery()
> File "/usr/lib/python2.5/site-packages/dabo/biz/dBizobj.py", line 866,
> in requery
> cursor.requery(params)
> File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
> 430, in requery
> self.execute(currSQL, params, _newQuery=newQuery)
> File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
> 303, in execute
> res = self.superCursor.execute(self, sql)
> kinterbasdb.InternalError: (0L, 'Attempt to look up Python codec name on
> basis of database char set name failed.')
Ok now open dCursorMixin.py to line 303 and look for the line below that
'except
Exception, e'. Add a line 'raise' right after that. On my machine, here's the
diff:
Index: dCursorMixin.py
===================================================================
--- dCursorMixin.py (revision 4699)
+++ dCursorMixin.py (working copy)
@@ -308,6 +308,7 @@
if not self.IsPrefCursor:
dabo.dbActivityLog.write("SQL: %s,
PARAMS:
%s" % (sql.replace("\n", " "), ", ".join(paramStr)))
except Exception, e:
+ raise
# There can be cases where errors are expected. In
those
cases, the
# calling routine will pass the class of the expected
error,
and will
# handle it appropriately.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]