> > i want to use the mapper in readonly manner.
> > Any idea how to disallow this in most effective manner?
>
> I've been looking for this feature several weeks ago. You can have
> a look at this thread (end of thread):
>
> http://groups.google.com/group/sqlalchemy/browse_thread/thread/79f1
>70eafafaa24d/a4a1911762fd2145?lnk=gst&q=readonlysession&rnum=1
>
> Basically, you associate your mappers with a read-only session. A
> such session is just a subclass of session which overrides flush()
> method and do nothing (or raise an exception...).

no, not really that, i want some classes/mappers in the hierarchy to 
be fully functional and some to be for polymorphic load-only.
i'll see if mapperExtension can do that...
or plain overriding the Mapper.save_obj() with one-line assert..

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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