On Mon, 7 May 2007 at 03:15, Sam's Lists wrote: > may just want to use _init(self, *args, **kw). *Note:* don't forget to call > SQLObject._init(self, *args, **kw) if you override the method! > > I.e. when do I have to call SQLObject._init...when i override any _init? > I'm still getting my sea legs here. :)
Yes, any time you override. I'm surprised the docs don't recommend using super, though. If you used super, it would look like this: class MySQLObject(SQLObject): def _init(self, *args, **kw): super(MySQLObject,self)._init(*args, **kw) [do your stuff] --David ------------------------------------------------------------------------- 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