ah yes, i forgot that already have that in dbcook! 
but i dont think it will avoid adding things to collections. 
okay thanks i'll dig further.  
On Friday 05 December 2008 19:39, Andreas Jung wrote:
> On 05.12.2008 17:10 Uhr, [EMAIL PROTECTED] wrote:
> > i'm asking about SA-related stuff, i know how to handle the python
> > side. how to "lock" relations, collections etc - how to make an
> > instance readonly?
> >
> > and eventualy if it is poosible after that to unlock that instance at
> > some point - so lock all the user-visible stuff but leave some
> > flag "_locked" writable.
>
> You might register a MapperExtension with your mapper. Inside the
> before_*() methods you could perform some checks in order to avoid any
> kind of write operations or modifications.
>
> -aj
>
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to