Fixes in executables for find the correct python3 executables
This commit is contained in:
parent
5221661417
commit
855617f43a
6 changed files with 35 additions and 5 deletions
30
paramecio/citoplasma/base_admin.py
Normal file
30
paramecio/citoplasma/base_admin.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
from paramecio.citoplasma.mtemplates import PTemplate
|
||||
from paramecio.citoplasma.adminutils import check_login, get_language, get_menu
|
||||
|
||||
def base_admin(func_view, env, title, **args):
|
||||
|
||||
env.directories.insert(1, config.paramecio_root+'/modules/admin/templates')
|
||||
|
||||
content_index=''
|
||||
|
||||
connection=WebModel.connection()
|
||||
#Fix, make local variable
|
||||
|
||||
t=PTemplate(env)
|
||||
|
||||
s=get_session()
|
||||
|
||||
if check_login():
|
||||
|
||||
#Load menu
|
||||
|
||||
menu=get_menu(config_admin.modules_admin)
|
||||
|
||||
lang_selected=get_language(s)
|
||||
|
||||
content_index=func_view(connection, t, s, **args)
|
||||
|
||||
return t.load_template('admin/content.html', title=title, content_index=content_index, menu=menu, lang_selected=lang_selected, arr_i18n=I18n.dict_i18n)
|
||||
|
||||
else:
|
||||
redirect(make_url(config.admin_folder))
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio.create_module import start
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio.citoplasma.check_i18n import start
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio.index import app, run_app
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio.cromosoma.dbadmin import start
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio.create_module import regenerate_modules_config
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue