#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 mramm):
Replying to [comment:7 chrisz]:
> 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.
This is a reasonable suggestion, and it looks nicer than most of the other
options as an API. We could add it as an alias, but the DBSesion and the
alias would live in user code, not the framework so this is really a
quickstart template discussion...
I'm still +0 on any rename as done is done, and it's not a real Pep-8
problem since DBession IS a class. ;)
--
Ticket URL: <http://trac.turbogears.org/ticket/2236#comment:11>
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
-~----------~----~----~----~------~----~------~--~---