Re: [RDBO] object class idea

2006-09-20 Thread Jonathan Vanasco
On Sep 20, 2006, at 7:21 PM, John Siracusa wrote: > 1. Override load() in your common base class and check is_deleted() > before > 2. Override get_objects() in a custom Manager subclass and then > base all good ideas. I'll give that a shot > straightforward and predictable. (What if I *w

Re: [RDBO] object class idea

2006-09-20 Thread John Siracusa
On 9/20/06 1:55 PM, Christopher Masto wrote: > Jonathan Vanasco wrote: >> as an example, in a system i have, no deletes are immediate, deletes >> are just bool flags + a deletion queue entry / timestemp, that waits >> for a month before actual deletion. >> so 95% of my selects on the public side in

Re: [RDBO] object class idea

2006-09-20 Thread Jonathan Vanasco
On Sep 20, 2006, at 2:50 PM, Randal L. Schwartz wrote: > I handled that in a client app by defining a "view" that doesn't show > me the deleted items. Maybe you can do the same, unless you're using > a broken database that doesn't support views. :) No, I'm using pg, not that other thing. I jus

Re: [RDBO] object class idea

2006-09-20 Thread Randal L. Schwartz
> "Jonathan" == Jonathan Vanasco <[EMAIL PROTECTED]> writes: Jonathan> i thought of it, because i use boolean flags to handle a lot of Jonathan> public facing things on my system. Jonathan> as an example, in a system i have, no deletes are immediate, deletes Jonathan> are just bool flags

Re: [RDBO] object class idea

2006-09-20 Thread Christopher Masto
Jonathan Vanasco wrote: > as an example, in a system i have, no deletes are immediate, deletes > are just bool flags + a deletion queue entry / timestemp, that waits > for a month before actual deletion. > so 95% of my selects on the public side include 'is_deleted= FALSE" I tend to have thing

[RDBO] object class idea

2006-09-16 Thread Jonathan Vanasco
Many of you may scoff at this, but it just popped into my head, and seems nifty , so I thought I'd share. What if there were a __PACKAGE__->meta->default_where that held certain attributes that should be incorporated into all selects, either through the load() or manager get() or wit