ositah 24.9.dev5__tar.gz → 24.9.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ositah might be problematic. Click here for more details.
- {ositah-24.9.dev5/ositah.egg-info → ositah-24.9.dev6}/PKG-INFO +1 -1
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/main.py +2 -2
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/agents.py +7 -5
- {ositah-24.9.dev5 → ositah-24.9.dev6/ositah.egg-info}/PKG-INFO +1 -1
- {ositah-24.9.dev5 → ositah-24.9.dev6}/pyproject.toml +1 -1
- {ositah-24.9.dev5 → ositah-24.9.dev6}/.gitignore +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/.gitlab-ci.yml +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/LICENSE +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/README.md +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/docker/Dockerfile +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/docker/docker-compose.yml +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/docker/pyproject-poetry.toml +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/gunicorn.config/README.md +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/gunicorn.config/gunicorn.ositah +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/gunicorn.config/gunicorn@.service +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/gunicorn.config/ositah.conf.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/noxfile.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/__init__.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/app.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/__init__.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/analysis.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/configuration/__init__.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/configuration/callbacks.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/configuration/main.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/configuration/parameters.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/configuration/tools.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/export.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/__init__.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/callbacks.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/main.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/parameters.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/tables.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/apps/validation/tools.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/assets/arrow_down_up.svg +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/assets/ositah.css +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/assets/sort_ascending.svg +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/assets/sort_descending.svg +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/assets/sorttable.js +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/ositah.example.cfg +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/static/style.css +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/templates/base.html +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/templates/bootstrap_login.html +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/templates/login_form.html +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/__init__.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/authentication.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/cache.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/core.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/exceptions.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/hito_db.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/hito_db_model.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/menus.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/period.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/projects.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/teams.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah/utils/utils.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah.egg-info/SOURCES.txt +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah.egg-info/dependency_links.txt +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah.egg-info/entry_points.txt +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah.egg-info/requires.txt +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/ositah.egg-info/top_level.txt +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/setup.cfg +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/setup.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/README.md +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/accordion.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/authentication.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/checkbox.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/checklist.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/file-selector.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/file-upload.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/long_running_callback.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/pandas_split.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/pandas_split_bug_report.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/pattern-matching-callback.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/progess_bar.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/reset_table_checkboxes.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/sortable_table.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/sqlalchemy_test.py +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/templates/base.html +0 -0
- {ositah-24.9.dev5 → ositah-24.9.dev6}/test-dash/templates/login_form.html +0 -0
|
@@ -192,7 +192,7 @@ def render_page_content(pathname, login_menu):
|
|
|
192
192
|
|
|
193
193
|
if user_authenticated:
|
|
194
194
|
user_session_data = global_params.session_data
|
|
195
|
-
user = get_agent_by_email(
|
|
195
|
+
user = get_agent_by_email()
|
|
196
196
|
role_ok = False
|
|
197
197
|
user_roles = user.roles
|
|
198
198
|
for role in AUTHORIZED_ROLES:
|
|
@@ -216,7 +216,7 @@ def render_page_content(pathname, login_menu):
|
|
|
216
216
|
else:
|
|
217
217
|
teams.extend(
|
|
218
218
|
Team.query.filter(
|
|
219
|
-
Team.children_managers.any(
|
|
219
|
+
Team.children_managers.any(email=session["user_email"])
|
|
220
220
|
).all()
|
|
221
221
|
)
|
|
222
222
|
team_list = sorted([t.nom for t in teams])
|
|
@@ -12,18 +12,20 @@ NSIP_AGENT_COLUMNS = {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
def get_agent_by_email(
|
|
15
|
+
def get_agent_by_email(agent_email: str = None) -> str:
|
|
16
16
|
"""
|
|
17
|
-
Retrieve an agent from Hito using
|
|
18
|
-
|
|
17
|
+
Retrieve an agent from Hito using his email. If the agent email argument
|
|
18
|
+
is not present, use the session user_email attribute.
|
|
19
19
|
|
|
20
|
-
:param
|
|
20
|
+
:param: agent_email: agent's email
|
|
21
21
|
:return: agent entry (row)
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
from ositah.utils.hito_db_model import Agent
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
if agent_email is None:
|
|
27
|
+
agent_email = session["user_email"]
|
|
28
|
+
user = Agent.query.filter_by(email_auth=agent_email).first()
|
|
27
29
|
if user is None:
|
|
28
30
|
user = Agent.query.filter_by(email=session["user_email"]).first()
|
|
29
31
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|