Re: [SQLObject] Hook for .new() method?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-06-09 05:19:46
|
Just with new, like: def new(cls, **kw): obj = super(cls).new(**kw) # ... do stuff ... return obj new = classmethod(new) On Mon, 2003-06-09 at 00:06, Edmund Lian wrote: > What's the best way to hook some code into the .new()? Basically, I need > to run some code after an object is instantiated for the first time. Is > this what the _init() method is for? > > ...Edmund. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > sqlobject-discuss mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss |