#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:               |  
-------------------------+--------------------------------------------------
Changes (by Chris Arndt):

  * owner:  => Chris Arndt
  * status:  new => assigned
  * type:  defect => enhancement

Old description:

> Since Session.mapper is deprecated in SQLAlchemy >= 0.5.5 the attached
> patch adds code to emulate its behaviour to turbogears.database follwing
> this recipe from the SA wiki (with slight enhancements):
>
> http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper
>
> A possible improvement would be to make the use of this code configurable
> through the app's config file.

New description:

 Since Session.mapper is deprecated in SQLAlchemy >= 0.5.5 the attached
 patch adds code to emulate its behavior to turbogears.database following
 this recipe from the SA wiki (with slight enhancements):

 http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper

 A possible improvement would be to make the use of this code configurable
 through the app's config file.

Comment:

 I added an improved patch with the following changes:

  * `session_mapper` is defined regardless of whether `Session.mapper` is
 available or not, so users can choose what to import.
  * Validation of kw args to constructor of mapped objects actually works
 now.
  * New unit test suite

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2359#comment:2>
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