From: <sub...@co...> - 2004-12-02 16:46:25
|
Author: ianb Date: 2004-12-02 16:46:20 +0000 (Thu, 02 Dec 2004) New Revision: 430 Modified: trunk/SQLObject/docs/SQLObject.txt Log: Noted that SQLObject._init must be called, per Carlos Ribeiro's suggestion. Modified: trunk/SQLObject/docs/SQLObject.txt =================================================================== --- trunk/SQLObject/docs/SQLObject.txt 2004-12-01 16:47:40 UTC (rev 429) +++ trunk/SQLObject/docs/SQLObject.txt 2004-12-02 16:46:20 UTC (rev 430) @@ -478,7 +478,8 @@ method, which is called after an object is fetched or inserted. This method has the signature ``_init(self, id, connection=None, selectResults=None)``, though you may just want to use ``_init(self, -*args, **kw)``. +*args, **kw)``. **Note:** don't forget to call +``SQLObject._init(self, *args, **kw)`` if you override the method! Adding Magic Attributes (properties) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |