Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
cputils
Commits
c8efcd52
Commit
c8efcd52
authored
Feb 03, 2012
by
Julien Cigar
Browse files
fix typo
parent
58458a2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/sqlalchemy.py
View file @
c8efcd52
...
...
@@ -71,13 +71,13 @@ class SAEnginePlugin(plugins.SimplePlugin):
if
not
self
.
sa_meta
:
self
.
sa_meta
=
MetaData
(
engine
=
self
.
sa_engine
,
**
_config
.
get
(
'metadata'
,
{}))
elif
not
s
a
.
sa_meta
.
is_bound
():
elif
not
s
elf
.
sa_meta
.
is_bound
():
self
.
sa_meta
.
bind
=
self
.
sa_engine
# Session
if
not
self
.
sa_session
:
_session
=
sessionmaker
(
**
config
.
get
(
'session'
,
{}))
_session
=
sessionmaker
(
**
_
config
.
get
(
'session'
,
{}))
self
.
sa_session
=
scoped_session
(
_session
)
self
.
sa_session
.
configure
(
bind
=
self
.
sa_engine
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment