#2359: [PATCH] Add emulation of SQLAlchemy Session.mapper to turbogears.database
-------------------------+--------------------------------------------------
 Reporter:  Chris Arndt  |        Owner:  Chris Arndt
     Type:  enhancement  |       Status:  assigned   
 Priority:  normal       |    Milestone:  1.1        
Component:  TurboGears   |      Version:  1.1b1      
 Severity:  normal       |   Resolution:             
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by chrisz):

 Makes sense. But `session_mapper` is now a function. We could rename it to
 `create_session_mapper` and let `session_mapper` be the result of the call
 instead, so that you can do `from database import session_mapper as
 mapper` without the need to call anything. Or at least the
 `scoped_session` parameter could have a default value of `session`.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2359#comment:3>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to