#2236: Uncapitalize DBsession
------------------------+---------------------------------------------------
 Reporter:  pitrou      |        Owner:        
     Type:  defect      |       Status:  new   
 Priority:  normal      |    Milestone:  2.0rc1
Component:  TurboGears  |      Version:  2.0b5 
 Severity:  minor       |   Resolution:        
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by faide):

 This is in fact a factory (ie: some kind of object producer) and yes,
 using the class methods will in fact create a thread local session stored
 in SA's internal registry and will work as a proxy for the object.

 In fact in previous SA versions the session, was just named session and
 they changed it to a capitalized version in case of scoped session because
 people did not remark it was indeed a factory.

 The DBSession is a class. What I think is that the name is not well chosen
 because it is not a "db session" but a "db session factory & thread local
 registry", hence the proposed names.

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