Multiple fixes in paths, cleaning code...
This commit is contained in:
parent
dc58175760
commit
73f9a5589e
4 changed files with 12 additions and 18 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# Template frontend from mako.
|
||||
|
||||
import gettext
|
||||
from mako.template import Template
|
||||
from flask import session, url_for
|
||||
from mako.lookup import TemplateLookup
|
||||
|
|
@ -89,6 +90,10 @@ class PTemplate:
|
|||
|
||||
self.add_filter(I18n.lang)
|
||||
|
||||
_=gettext.gettext
|
||||
|
||||
self.add_filter(_)
|
||||
|
||||
#self.add_filter(make_url)
|
||||
|
||||
self.add_filter(make_media_url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue