Fixes in i18n and usermodel errors

This commit is contained in:
Antonio de la Rosa 2017-07-16 02:12:08 +02:00
parent fd4019069d
commit 898b72fce5
2 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ from importlib import import_module
from paramecio.citoplasma.i18n import I18n
from settings import config
pattern=re.compile('^\w+\.(py|html|phtml|pjs)$')
pattern=re.compile('^\w+\.(py|html|phtml|js)$')
ignored=re.compile('^[__|\.].*$')

View file

@ -120,7 +120,7 @@ class UserModel(WebModel):
self.fields[self.username_field].error=True
self.fields[self.username_field].txt_error=I18n.lang('common', 'error_username_exists', 'Error: username exists in database')
self.fields_errors[self.username_field].append(self.fields[self.username_field].txt_error)
error+=1
@ -132,6 +132,7 @@ class UserModel(WebModel):
self.fields[self.username_field].error=True
self.fields[self.username_field].txt_error=I18n.lang('common', 'error_email_exists', 'Error: email exists in database')
self.fields_errors[self.username_field].append(self.fields[self.username_field].txt_error)
error+=1