All tests working now

This commit is contained in:
Antonio de la Rosa 2016-07-25 05:45:15 +02:00
parent 61a2d53308
commit 0ac685d223
2 changed files with 9 additions and 5 deletions

View file

@ -2,7 +2,11 @@
from paramecio.cromosoma.coreforms import BaseForm
from paramecio.citoplasma.i18n import I18n
from paramecio.citoplasma.mtemplates import standard_t
from paramecio.citoplasma.mtemplates import env_theme, PTemplate
env=env_theme(__file__)
t=PTemplate(env)
class I18nForm(BaseForm):
@ -16,4 +20,4 @@ class I18nForm(BaseForm):
lang_selected=I18n.get_default_lang()
return standard_t.load_template('forms/i18nform.phtml', name_form=self.name, form=self.form_child, arr_i18n=I18n.dict_i18n, lang_selected=lang_selected)
return t.load_template('forms/i18nform.phtml', name_form=self.name, form=self.form_child, arr_i18n=I18n.dict_i18n, lang_selected=lang_selected)