Fixes on admin

This commit is contained in:
Antonio de la Rosa 2015-12-10 20:10:12 +01:00
parent 673a94dd7b
commit feab9edb50
3 changed files with 13 additions and 9 deletions

View file

@ -11,6 +11,8 @@ lang_p=re.compile()
def start():
# Module to search and file where save the file.
scandir('.')
pass

View file

@ -1,17 +1,20 @@
#!/usr/bin/python3
from settings import config
from importlib import import_module
def load_lang(*args):
for module in args:
if module in config.modules:
lang_path=module+'.i18n'
lang_path=config.base_modules+'.'+module+'.i18n'
try:
i18n_module=import_module(module)
else:
lang_path='i18n'
return True
except:
return False
# here load the language

View file

@ -8,7 +8,6 @@ from paramecio.cromosoma.extrafields.emailfield import EmailField
from paramecio.cromosoma.extrafields.passwordfield import PasswordField
class PrivilegesField(corefields.IntegerField):
pass
def show_formatted(self, value):