On Thu, Aug 30, 2007 at 03:54:47PM -0500, Kevin J. Rice wrote:
> Oleg! Mahlohdetz!

   (-:

> class DumbTable(SQLObject):
>     def __init__(self):
>         self.createPreppedGetByIDStatement()
>         #... Make a call to Sqlobject's __init__()??

   Yes, the overridden __init__() must call SQLObject.__init__(). But you
have to understand that the __init__() is called on creation of an every
Table instance - i.e. on creation (INSERT or SELECT) of an every row. And
you probably want to run all PREPARE statements once for a table, not for
a row.

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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to