Re: [SQLObject] Overriding new()..._SO_new()?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Brad B. <br...@bb...> - 2003-10-10 20:18:50
|
On Friday, October 10, 2003, at 11:23 AM, Ian Bicking wrote: >> Am I missing a way in which this can be done, or should SQLObject >> have an _SO_new? > > You can override new() just like it is. (Though number 1 can probably > be handled with a column default) Then what method do I call to access the "original" new once I've done the overriding? When overriding columns, I'd just use the _SO_'s, but when overriding new, it's unclear (to me, at least.) Also, I don't see how using a column default will be able to default a DateTimeCol to be the time at which the row was created, but in any case, I still want to override new for at least the problem of wanting to instantiate a Transaction when a Refund/Purchase/ChargeBack/whatever is instantiated. -- Brad Bollenbach BBnet.ca |