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

Author: Ed Leafe

Posted: 2013-05-29 at 14:29:53

On May 22, 2013, at 7:28 AM, Sibylle Koczian <Sibylle.Koczian@t-online.de> wrote:

> 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?

'secondary' is the cursor class for the particular backend; in your case, Firebird. Apparently the Firebird cursor requires more than the standard arguments. Can you look at the kinterbasdb and/or fdb code to see what arguments are required for the cursor class's __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.

When that code was written, we were probably using 2.2 or 2.3. It's been working fine all these years, so we never updated it. But even if we removed the use of 'apply', there would still be only 2 arguments being supplied.

-- Ed Leafe

_______________________________________________

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/EA2AB08F-2237-4B1F-A3D1-E21A77D4DFAE@leafe.com

©2013 Ed Leafe