summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-09 15:14:31 -0500
committerChris McDonough <chrism@plope.com>2010-11-09 15:14:31 -0500
commitccbc9539ca8f7a56089affb0bc1a6feb1f65272e (patch)
treec0534548b6f5efe3d74c0354e1ac205889121c7d
parent2b7d443e34cb5104d64d822272c8fcec143f87fe (diff)
downloadpyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.tar.gz
pyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.tar.bz2
pyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.zip
sqla idiomatic suggestions from rob
-rw-r--r--TODO.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/TODO.txt b/TODO.txt
index ec3feac9a..f0bd20631 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -95,3 +95,22 @@
- Option for route_url to omit the host and port (perhaps a different
function named ``route_path``).
+
+- SQLAlchemy idiomatics:
+
+ <RaFromBRC> mcdonc: those paster templates all look pretty good... the
+ only thing i'd consider is adjusting your config variable names to match
+ exactly what sqlalchemy uses as parameter names, see here:
+ http://www.sqlalchemy.org/docs/core/engines.html
+
+ <RaFromBRC> mcdonc: especially in the pylons_sqla ini file, where the db
+ initialization is mixed in w/ the app config...
+
+ <RaFromBRC> ... i'd use "sqlalchemy.PARAMETER" for all of the sqla
+ settings, so it could easily be handed to engine_from_config w/o any need
+ to parse by hand
+
+ <RaFromBRC> mcdonc: in the other ini files, where sqlalchemy is given its
+ own part, the "sqlalchemy." prefix probably isn't necessary, but matching
+ the parameter names (e.g. 'url' instead of 'db_string') is still probably
+ a good idea