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
06e57e5d
Commit
06e57e5d
authored
Sep 01, 2016
by
Julien Cigar
🤘
Browse files
remove SA version check
parent
d30cabd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/sa_plugin.py
View file @
06e57e5d
...
...
@@ -2,14 +2,11 @@
from
cherrypy.process
import
plugins
from
sqlalchemy
import
create_engine
,
MetaData
,
__version__
as
sa_version
from
sqlalchemy
import
create_engine
,
MetaData
from
sqlalchemy.orm
import
scoped_session
,
sessionmaker
__all__
=
[
'SAEnginePlugin'
]
if
sa_version
.
split
(
'.'
)
<
[
'0'
,
'7'
,
'4'
]:
raise
ImportError
(
'Version 0.7.4 or later of SQLAlchemy required.'
)
class
SAEnginePlugin
(
plugins
.
SimplePlugin
):
"""
SQLAlchemy integration for CherryPy
...
...
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