Re: [dabo-users] Firebird: kinterbasdb not maintained, fdb usable?

Author: Sibylle Koczian

Posted: 2013-05-18 at 05:43:30

Am 16.05.2013 13:47, schrieb Sibylle Koczian:

> Am 15.05.2013 14:58, schrieb Werner F. Bruhin:

>> But it would obviously be good if FDB would get more testing and Pavel

>> seems to do a good job to keep on top of issues as I see regular fixes

>> posted on the list: firebird-python@yahoogroups.com

>>

>

> Quite right. I'll try that first, put FDB into dbfirebird.py, look at

> results and tell about them here.

>

First results: doesn't work out of the box. From dbFirebird.py I removed

line 25 to 43, as fdb doesn't need the initialization. Replaced

"kinterbasdb" with "fdb", didn't change anything else.

No problems creating the .cnxml file, test connection successful. Then I

used a very small test application which works with kinterbasdb, but got

this:

sib@gespenst-suse:~/bin> ./testnumtx_fb.py

/home/sib/src/dabo-master/dabo/lib/SimpleCrypt.py:52: UserWarning:

WARNING: SimpleCrypt is not secure. Please see

http://wiki.dabodev.com/SimpleCrypt for more information

warnings.warn("WARNING: SimpleCrypt is not secure. Please see

http://wiki.dabodev.com/SimpleCrypt for more information")

Traceback (most recent call last):

File "./testnumtx_fb.py", line 106, in <module>

app.start()

File "/home/sib/src/dabo-master/dabo/dApp.py", line 388, in start

self.setup()

File "/home/sib/src/dabo-master/dabo/dApp.py", line 340, in setup

self.initUIApp()

File "/home/sib/src/dabo-master/dabo/dApp.py", line 380, in initUIApp

self.uiApp.setup()

File "/home/sib/src/dabo-master/dabo/ui/uiwx/uiApp.py", line 432, in

setup

frm = self.dApp.MainForm = mfc()

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dForm.py", line 1043, in

__init__

*args, **kwargs)

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dForm.py", line 40, in

__init__

attProperties=attProperties, *args, **kwargs)

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dFormMixin.py", line 76,

in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dPemMixin.py", line 202,

in __init__

self._afterInit()

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dForm.py", line 58, in

_afterInit

super(BaseForm, self)._afterInit()

File "/home/sib/src/dabo-master/dabo/ui/uiwx/dFormMixin.py", line

124, in _afterInit

self.createBizobjs()

File "./testnumtx_fb.py", line 45, in createBizobjs

conn = self.Application.getConnectionByName("FB_Foo")

File "/home/sib/src/dabo-master/dabo/dApp.py", line 1020, in

getConnectionByName

self.dbConnections[connName] = dabo.db.dConnection(ci)

File "/home/sib/src/dabo-master/dabo/db/dConnection.py", line 32, in

__init__

self._connection = self._openConnection(**kwargs)

File "/home/sib/src/dabo-master/dabo/db/dConnection.py", line 85, in

_openConnection

return

self._connectInfo.getConnection(forceCreate=self._forceCreate, **kwargs)

File "/home/sib/src/dabo-master/dabo/db/dConnectInfo.py", line 79, in

getConnection

return self._backendObject.getConnection(self, **kwargs)

File "/home/sib/src/dabo-master/dabo/db/dbFirebird.py", line 43, in

getConnection

password=password, database=database, **kwargs)

TypeError: connect() got an unexpected keyword argument 'forceCreate'

Should I put the changed dbFirebird.py to codepad?

Greetings,

Sibylle

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/51975B52.3050205@t-online.de

©2013 Sibylle Koczian