Upgrade package versions
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
--- env/lib/python2.7/site-packages/flaskext/babel.py 2013-07-13 00:00:00 +0000
|
--- env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000
|
||||||
+++ env/lib/python2.7/site-packages/flaskext/babel.py 2013-07-13 00:00:00 +0000
|
+++ env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000
|
||||||
@@ -19,6 +19,7 @@
|
@@ -19,6 +19,7 @@
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from flask import _request_ctx_stack
|
from flask import _request_ctx_stack
|
||||||
|
10
etc/reqs.txt
10
etc/reqs.txt
@ -1,8 +1,8 @@
|
|||||||
pytz>=2012
|
pytz>=2012
|
||||||
Flask==0.9
|
Flask==0.10.1
|
||||||
Flask-Babel==0.8
|
Flask-Babel==0.9
|
||||||
Flask-Cache==0.10.1
|
Flask-Cache==0.12
|
||||||
Jinja2==2.6
|
Jinja2==2.7.2
|
||||||
Pygments==1.6
|
Pygments==1.6
|
||||||
docutils==0.9.1
|
docutils==0.11
|
||||||
gunicorn==0.17.2
|
gunicorn==0.17.2
|
||||||
|
@ -30,8 +30,14 @@ app.url_map.converters['lang'] = LangConverter
|
|||||||
######
|
######
|
||||||
# URLs
|
# URLs
|
||||||
|
|
||||||
|
lazy_views = {}
|
||||||
|
|
||||||
def url(url_rule, import_name, **options):
|
def url(url_rule, import_name, **options):
|
||||||
|
if import_name in lazy_views:
|
||||||
|
view = lazy_views[import_name]
|
||||||
|
else:
|
||||||
view = LazyView('i2p2www.' + import_name)
|
view = LazyView('i2p2www.' + import_name)
|
||||||
|
lazy_views[import_name] = view
|
||||||
app.add_url_rule(url_rule, view_func=view, **options)
|
app.add_url_rule(url_rule, view_func=view, **options)
|
||||||
|
|
||||||
url('/', 'views.main_index')
|
url('/', 'views.main_index')
|
||||||
|
Reference in New Issue
Block a user