Scanner, Downloaders, Providers

This commit is contained in:
Ruud committed 2011-05-18 12:37:22 +02:00
1 parent 7837adec1d
commit 09fed4ca63
27 files changed
+855 -217

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ def get_session(engine = None):
return scoped_session(sessionmaker(bind = engine))
def get_engine():
return create_engine(Env.get('db_path'), echo = False)
return create_engine(Env.get('db_path')+'?check_same_thread=False', echo = False)
def addView(route, func, static = False):
web.add_url_rule(route + ('' if static else '/'), endpoint = route if route else 'index', view_func = func)