> 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/79f170eafafaa24d/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...).


Hope it helps.

Seb
-- 
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http://www.sirloon.net


--~--~---------~--~----~------------~-------~--~----~
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