Multiple fixes in paths, cleaning code...
This commit is contained in:
parent
dc58175760
commit
73f9a5589e
4 changed files with 12 additions and 18 deletions
|
|
@ -349,7 +349,7 @@ class WebModel:
|
|||
distinct (str): Add DISTINCT keyword to self.select method.
|
||||
post (dict): A simple dictionary where post values are saved for use of fields classes
|
||||
files_delete (dict): A simple dictionary that save the fields that have files related. If i delete the row in database i need delete the files related
|
||||
sql_class (SqlClass): A sql_class used for connect to db.
|
||||
sqlclass (SqlClass): A sql_class used for connect to db.
|
||||
show_formatted (bool): If True, by default all fields are showed with formatted value using show_formatted method of PhangoField classes and children in select method. If False, raw value is showed.
|
||||
enctype (bool): If True, forms generated using this model are prepared for enctype=multipart/form-data A.K.A. upload files.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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