Re: [sqlalchemy] advice sought - handling a relationship cascade

2015-08-06 Thread Jonathan Vanasco
On Wednesday, August 5, 2015 at 10:08:35 PM UTC-4, Michael Bayer wrote: viewonly=True? That was the EXACTLY what I needed. Thank you! -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group and stop receiving emails

Re: [sqlalchemy] advice sought - handling a relationship cascade

2015-08-05 Thread Mike Bayer
On 8/5/15 8:57 PM, Jonathan Vanasco wrote: I have 2 related classes • ProvisionedAccess (auth policy) • Credentials (public/private key) ProvisionedAccess has 2 relationships: • keyset_active -- the active keyset, identified by having an is_active flag • keys_all -- all

[sqlalchemy] advice sought - handling a relationship cascade

2015-08-05 Thread Jonathan Vanasco
I have 2 related classes • ProvisionedAccess (auth policy) • Credentials (public/private key) ProvisionedAccess has 2 relationships: • keyset_active -- the active keyset, identified by having an is_active flag • keys_all -- all historical keys I've implemented them as below.