Fixes on admin
This commit is contained in:
parent
673a94dd7b
commit
feab9edb50
3 changed files with 13 additions and 9 deletions
|
|
@ -11,6 +11,8 @@ lang_p=re.compile()
|
|||
|
||||
def start():
|
||||
|
||||
# Module to search and file where save the file.
|
||||
|
||||
scandir('.')
|
||||
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,18 +1,21 @@
|
|||
#!/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=config.base_modules+'.'+module+'.i18n'
|
||||
|
||||
else:
|
||||
lang_path='i18n'
|
||||
|
||||
lang_path=module+'.i18n'
|
||||
|
||||
try:
|
||||
i18n_module=import_module(module)
|
||||
|
||||
return True
|
||||
|
||||
except:
|
||||
return False
|
||||
|
||||
# here load the language
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue