diff options
author | yvesf <yvesf-git@xapek.org> | 2011-07-24 19:22:01 +0200 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2011-07-24 19:22:01 +0200 |
commit | 98270d7d44d0b7230794752cf69d1f28ecc5ecf0 (patch) | |
tree | 010a35817e5960b3ee26d8fb0b7d861116282ebf /ebus/webapp/soup_plugin.py | |
parent | 0f50ff74d21875918efaa35cd9915a197e4e81c1 (diff) | |
download | ebus-alt-98270d7d44d0b7230794752cf69d1f28ecc5ecf0.tar.gz ebus-alt-98270d7d44d0b7230794752cf69d1f28ecc5ecf0.zip |
echo=True in web_dev
Diffstat (limited to 'ebus/webapp/soup_plugin.py')
-rw-r--r-- | ebus/webapp/soup_plugin.py | 5 |
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) |