Sibylle Koczian wrote:
> "Uwe Grauer" <[EMAIL PROTECTED]> schrieb:
>> You have to overwrite dApp:
>> ...
> And then in the main() function of the Dabo application:
>
> app = dApp(charset='utf8')
>
# import overwritten class code:
from ug import *
def main():
# .....
app = ugApp()
# .....
app.Charset = 'UTF8'
# .....
app.start()
> or whatever. Right? I looked at the dApp.py and dObject.py, but didn't
> find _extractKeywordProperties(). Will try it out. Thank you for the
> code! I suppose for Firebird this is needed more or less always, isn't
> it?
The actual code doesn't use _extractKeywordProperties().
You can put a print stmt into dbFirebird.getConnection() to see if the
charset gets handed into **kwargs.
I'm using the charset setting for FB since it was integrated into Dabo.
>
> Additional question: if the application isn't all in one file, what's
> the best place for an overwritten dApp class? Together with the main()
> function?
>
I'm putting my overwritten classes into a subdir (module) "ug" of the
main app file. These are ugApp, ugForm, ...
eg:
app_main.py
ug/__init__.py
ug/ugApp.py
In ug/__init__.py i put:
from ugApp import ugApp
>> BTW, i tested the prerelease version of kinterbasdb:
>> http://www.firebirdsql.org/download/prerelease/python/
>> and found that UTF8 support improved.
>>
>
> Thank you for the information and the link. I just got the files but
> didn't install them yet.
I'm using the prerelease version because it gives better results.
Uwe
_______________________________________________
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]