projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a048651
)
Unbreak db.connect(), whoops.
author
Eevee
<git@veekun.com>
Wed, 6 Apr 2011 04:46:11 +0000
(21:46 -0700)
committer
Eevee
<git@veekun.com>
Wed, 6 Apr 2011 04:46:11 +0000
(21:46 -0700)
pokedex/db/__init__.py
patch
|
blob
|
history
diff --git
a/pokedex/db/__init__.py
b/pokedex/db/__init__.py
index
ea103e7
..
c4013f4
100644
(file)
--- a/
pokedex/db/__init__.py
+++ b/
pokedex/db/__init__.py
@@
-45,9
+45,9
@@
def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''):
**all_session_args)
session = MultilangScopedSession(sm)
**all_session_args)
session = MultilangScopedSession(sm)
- # Default to English
- session.default_language = session.query(Language) \
- .filter_by(identifier=u'en') \
- .one()
+ # Default to English
. Warning, magic constant, blah blah. Trying to fetch
+ # English here would kinda break on new databases. TODO still not an ideal
+ # solution, I guess.
+ session._default_language_id = 9
return session
return session