#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 chrisz):

 This notation was already used at least since SA 0.4 (see
 
[http://www.sqlalchemy.org/docs/04/sqlalchemy_orm.html#docstrings_sqlalchemy.orm_modfunc_scoped_session
 here], the Session corresponds to our DBSession).

 I'm against using lower case "db_session" name since this will confuse
 people who are reading the SA docs - they will think it corresponds to a
 normal "session" instance. On the other hand, I agree with pitrou:
 "SAScopedSession" is too complicated for a name you're using so
 frequently. Maybe as a pragmatic compromise, we can add an alias name "db"
 (but leaving DBSession for compatibility and for purists)? db.query(...)
 really is much better than anything else. And the name "session" could be
 reserved to beaker sessions.

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