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(): def start():
# Module to search and file where save the file.
scandir('.') scandir('.')
pass pass

View file

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

View file

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