url_base fix

This commit is contained in:
Ruud
2011-05-28 23:21:58 +02:00
parent 98aafeaec3
commit 05f63405e0
5 changed files with 11 additions and 10 deletions
+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')+'?check_same_thread=False', 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)