summaryrefslogtreecommitdiff
path: root/ebus
diff options
context:
space:
mode:
Diffstat (limited to 'ebus')
-rw-r--r--ebus/webapp/soup_plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ebus/webapp/soup_plugin.py b/ebus/webapp/soup_plugin.py
index 68120af..b6292c6 100644
--- a/ebus/webapp/soup_plugin.py
+++ b/ebus/webapp/soup_plugin.py
@@ -9,9 +9,10 @@ from sqlalchemy.ext.sqlsoup import SqlSoup
class SoupPlugin(object):
name = 'soup'
- def __init__(self, url, keyword='soup'):
+ def __init__(self, url, echo=False, keyword='soup'):
self.url = url
self.keyword = keyword
+ self.echo = echo
def setup(self, app):
for other in app.plugins:
@@ -20,7 +21,7 @@ class SoupPlugin(object):
raise PluginError("Found another soup plugin with "\
"conflicting settings (non-unique keyword).")
- self.engine = create_engine(self.url)
+ self.engine = create_engine(self.url, echo=self.echo)
self.soup = SqlSoup(self.engine)