Fixes in tests and add check_login function to admin cntroller
This commit is contained in:
parent
b41461cc2c
commit
da9a37a406
10 changed files with 33 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ from bottle import get,post,response,request
|
|||
from settings import config
|
||||
from settings import config_admin
|
||||
from paramecio.citoplasma.lists import SimpleList
|
||||
from paramecio.citoplasma.adminutils import get_menu, get_language, make_admin_url
|
||||
from paramecio.citoplasma.adminutils import get_menu, get_language, make_admin_url, check_login
|
||||
from paramecio.citoplasma.generate_admin_class import GenerateAdminClass
|
||||
from paramecio.citoplasma.httputils import GetPostFiles
|
||||
from paramecio.cromosoma.formsutils import show_form, pass_values_to_form, set_extra_forms_user
|
||||
|
|
@ -72,7 +72,7 @@ def home(module='', submodule=''):
|
|||
|
||||
s=get_session()
|
||||
|
||||
if 'login' in s:
|
||||
if check_login():
|
||||
|
||||
s['id']=s.get('id', 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue