Am 09.07.2014 15:11, schrieb John Fabiani:
On 07/09/2014 04:11 AM, Sibylle Koczian wrote:
I've tried to use fdb in dbFirebird.py, but without success
OK what are the issues?  I've always thought that anything follows the
dbapi should work.


I've put the changed dbFirebird.py on codepad, together with a small test script which uses the table Country in the Employee database. That should exist in every Firebird installation and it contains only two fields.

Here are the links:

dbFirebird.py, changed to use fdb instead of kinterbasdb:

http://dabo.codepad.org/eb6fson5

Test script:

http://codepad.org/GKqRYnjr

Result of running the test script:

sib@gespenst-suse:~/bin> python test_fdb_employee.py
/home/sib/src/dabo-master/dabo/lib/SimpleCrypt.py:54: 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 "test_fdb_employee.py", line 102, 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 1044, 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 "test_fdb_employee.py", line 44, in createBizobjs
    biz = BizCountry(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)
sib@gespenst-suse:~/bin>

Last year's thread in this list about the problem:

http://leafe.com/archives/full_thread/485534

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/53bd5e51.2090...@t-online.de

Reply via email to