On 8/15/07, Jose Galvez <[EMAIL PROTECTED]> wrote:
> Wow a lot to digest.  I use assign_mapper which needs the
> session_context how do I get that with the the new setup?  It was pretty
> easy to get with sacontext, I'm not sure how to get at it with this new
> setup

Use Session.mapper instead of mapper.  This gives you MyClass.query
and auto-saves new instances so you don't have to call
Session.save(obj).  The query methods are on the .query property
rather than on the class itself.  The session methods are on the
Session object so they aren't repeated on the class.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to