Upgrade package versions

This commit is contained in:
str4d
2014-02-13 20:58:13 +00:00
parent 01d0c771e0
commit 8dd96c81ee
3 changed files with 14 additions and 8 deletions

View File

@ -30,8 +30,14 @@ app.url_map.converters['lang'] = LangConverter
######
# URLs
lazy_views = {}
def url(url_rule, import_name, **options):
view = LazyView('i2p2www.' + import_name)
if import_name in lazy_views:
view = lazy_views[import_name]
else:
view = LazyView('i2p2www.' + import_name)
lazy_views[import_name] = view
app.add_url_rule(url_rule, view_func=view, **options)
url('/', 'views.main_index')