On May 22, 2013, at 7:28 AM, Sibylle Koczian <[email protected]> 
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: [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]

Reply via email to