On Sat, Apr 21, 2007 at 04:49:49PM -0500, [EMAIL PROTECTED] wrote:
> >> TypeError: _init() takes exactly 2 arguments (4 given)

   This is a bug in your program, not in SQLObject. You've declared
ventas._init() with the following signature:

    def _init(self,id):

But in SQLObject it is

    def _init(self, id, connection=None, selectResults=None):

You must declare you ._init() the same way, and you must pass all
parameters to SQLObject:

    def _init(self, id, connection=None, selectResults=None):
        SQLObject._init(self, id, connection=connection, 
selectResults=selectResults) ###Subrayala por favor

Now your program works.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to