diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-09 15:14:31 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-09 15:14:31 -0500 |
| commit | ccbc9539ca8f7a56089affb0bc1a6feb1f65272e (patch) | |
| tree | c0534548b6f5efe3d74c0354e1ac205889121c7d | |
| parent | 2b7d443e34cb5104d64d822272c8fcec143f87fe (diff) | |
| download | pyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.tar.gz pyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.tar.bz2 pyramid-ccbc9539ca8f7a56089affb0bc1a6feb1f65272e.zip | |
sqla idiomatic suggestions from rob
| -rw-r--r-- | TODO.txt | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 |
