Uwe Grauer wrote:
> Paul McNett wrote:
>> Uwe Grauer wrote:
>>> Paul McNett wrote:
>>>> Uwe Grauer wrote:
>>>>> ...
>>>>> Any hint on what may be wrong?
>>>> Does this problem go away if you take Dabo out of the picture?
>>>>
>>>> Paul
>>> That's hard to say as long as i have no idea about the source of the
>>> problem.
>>>
>>> Doing a select with the python dbapi functions without explicit
>>> encodings does not give any errors.
>> Ok, we need to get you a traceback to work backwards from, instead of a
>> database
>> error log entry. Does setting dabo.settings.eatBizExceptions to False help
>> in this
>> regard?
>>
>> Paul
>
> After setting dabo.settings.eatBizExceptions to False i'm getting the
> following trace:
>
> 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
> 493, in requery
> self.notifyUser(str(e), title=_("Database Action Failed"),
> severe=True, exception=e)
> 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 873,
> in requery
> raise dException.DBQueryException, e
> dabo.dException.DBQueryException: (0L, 'Attempt to look up Python codec
> name on basis of database char set name failed.')
>
> Stepping thrue cursor.requery() (line 866 of dBizobj.py) shows that
> the exception happens at line 303 of dCursorMixin.py:
> res = self.superCursor.execute(self, sql)
>
> The real exception is:
> kinterbasdb.InternalError(0L, 'Attempt to look up Python codec name on
> basis of database char set name failed.')
>
> I'm still clueless.
Change that line 873 in dBizobj.py from 'raise dException.DBQueryException, e'
to
'raise'. Hopefully that'll give you the traceback from kinterbasdb.
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]