Hello,
I still can't get Dabo to work with fdb.
Am 18.05.2013 12:43, schrieb Sibylle Koczian:
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.
Next change, again in dbFirebird.py, put "forceCreate=False" into the
parameter list for getConnection:
getConnection(self, connectInfo, forceCreate=False, **kwargs)
Like dbMSSQL.py and dbSQLite.py.
No problems creating the .cnxml file, test connection successful.
Same now, after the second change. Trying my test application I got a
new exception:
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 46, in createBizobjs
biz = BizFoo(conn)
File "/home/sib/src/dabo-master/dabo/biz/dBizobj.py", line 56, in
__init__
self.setConnection(conn)
File "/home/sib/src/dabo-master/dabo/biz/dBizobj.py", line 137, in
setConnection
self.createCursor()
File "/home/sib/src/dabo-master/dabo/biz/dBizobj.py", line 270, in
createCursor
crs = cf.getCursor(cursorClass)
File "/home/sib/src/dabo-master/dabo/db/dConnection.py", line 52, in
getCursor
return self.getBackendObject().getCursor(cursorClass)
File "/home/sib/src/dabo-master/dabo/db/dBackend.py", line 63, in
getCursor
return cursorClass(self._connection)
File "/home/sib/src/dabo-master/dabo/biz/dBizobj.py", line 300, in
__init__
apply(secondary.__init__, (self,) + args, kwargs)
TypeError: __init__() takes exactly 3 arguments (2 given)
What is happening here? What is "secondary" and what is its __init__ method?
Btw, my 2.7 documentation says about "apply": deprecated since version
2.3. I suppose that's when using "function(*args, **kwargs)" was introduced.
Thank you for help,
Sibylle
_______________________________________________
Post Messages to: [email protected]
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/[email protected]