iatoolkit 0.16.5__py3-none-any.whl → 0.16.7__py3-none-any.whl

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 iatoolkit might be problematic. Click here for more details.

iatoolkit/common/auth.py CHANGED
@@ -55,7 +55,7 @@ class IAuthentication:
55
55
  elif api_key_error_info is not None:
56
56
  # explicit error in API Key (inválida, incorrecta, error interno)
57
57
  logging.warning(f"Fallo de autenticación API Key: {api_key_error_info}")
58
- return {"error_message": "Fallo de autenticación API Key"}
58
+ return {"error_message": api_key_error_info}
59
59
  else:
60
60
  # 3. no JWT and API Key auth, try by Session
61
61
  self.check_if_user_is_logged_in(company_short_name) # raise exception or redirect if not logged in
iatoolkit/iatoolkit.py CHANGED
@@ -113,8 +113,9 @@ class IAToolkit:
113
113
  return self.config.get(key, os.getenv(key, default))
114
114
 
115
115
  def _setup_logging(self):
116
- log_level_str = self._get_config_value('FLASK_ENV', 'production')
117
- log_level = logging.INFO if log_level_str in ('dev', 'development') else logging.WARNING
116
+ # Lee el nivel de log desde una variable de entorno, con 'INFO' como valor por defecto.
117
+ log_level_name = os.getenv('LOG_LEVEL', 'INFO').upper()
118
+ log_level = getattr(logging, log_level_name, logging.INFO)
118
119
 
119
120
  logging.basicConfig(
120
121
  level=log_level,
@@ -17,7 +17,7 @@
17
17
  <span style="{{ branding.primary_text_style }}">
18
18
  {{ branding.name }}
19
19
  </span>
20
- <span class="ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Powered by IAToolkit">
20
+ <span class="ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Powered by IAToolkit ({{ iatoolkit_version }})">
21
21
  <i class="bi bi-info-circle" style="color: {{ branding.header_text_color }}; opacity: 0.7; font-size: 0.9rem;"></i>
22
22
  </span>
23
23
  </div>
@@ -65,7 +65,7 @@
65
65
 
66
66
  <!-- Modal para historial -->
67
67
  <div class="modal fade" id="historyModal" tabindex="-1" aria-labelledby="historyModalLabel" aria-hidden="true">
68
- <div class="modal-dialog modal-lg modal-dialog-centered">
68
+ <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
69
69
  <div class="modal-content">
70
70
  <div class="modal-header branded">
71
71
  <h5 class="modal-title" id="historyModalLabel">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iatoolkit
3
- Version: 0.16.5
3
+ Version: 0.16.7
4
4
  Summary: IAToolkit
5
5
  Author: Fernando Libedinsky
6
6
  License-Expression: MIT
@@ -2,9 +2,9 @@ iatoolkit/__init__.py,sha256=4PWjMJjktixtrxF6BY405qyA50Sv967kEP2x-oil6qk,1120
2
2
  iatoolkit/base_company.py,sha256=GacYVVujoxAwUhofRn5eZcR-s1bHtSQXLD-0SRnWSC0,4595
3
3
  iatoolkit/cli_commands.py,sha256=G5L9xQXZ0lVFXQWBaE_KEZHyfuiT6PL1nTQRoSdnBzc,2302
4
4
  iatoolkit/company_registry.py,sha256=tduqt3oV8iDX_IB1eA7KIgvIxE4edTcy-3qZIXh3Lzw,2549
5
- iatoolkit/iatoolkit.py,sha256=OXhzOiJwfGi0ozi5V2ckPEagcTyb4Cz08QxLtE0_67E,17118
5
+ iatoolkit/iatoolkit.py,sha256=AfuumoVKH2wk8Kg2w-m0iPOgKK5ZxePn_xZJ0a5rcrg,17174
6
6
  iatoolkit/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- iatoolkit/common/auth.py,sha256=8NH6MQXfddLQd1GxrO2op3IYrrP4SMQKoKzj1o1jZmc,8486
7
+ iatoolkit/common/auth.py,sha256=83WsyHF7TdjPYfAA-da-waizlWLIqSTx-2z4pI4LAnw,8471
8
8
  iatoolkit/common/exceptions.py,sha256=EXx40n5htp7UiOM6P1xfJ9U6NMcADqm62dlFaKz7ICU,1154
9
9
  iatoolkit/common/routes.py,sha256=ZCJyeVaGsCPaEWEgj2ZKh3RzuFcyEx_dnrlKdAbcOao,4930
10
10
  iatoolkit/common/session_manager.py,sha256=7D_RuJs60w-1zDr3fOGEz9JW7IZlSXuUHgUT87CzaUo,472
@@ -77,8 +77,8 @@ iatoolkit/system_prompts/sql_rules.prompt,sha256=y4nURVnb9AyFwt-lrbMNBHHtZlhk6kC
77
77
  iatoolkit/templates/about.html,sha256=ciC08grUVz5qLzdzDDqDX31xirg5PrJIRYabWpV9oA8,294
78
78
  iatoolkit/templates/base.html,sha256=TojvSnVvXkTe7Kpt_BBWoXFfZN6dveKD0VqQjUOXdgU,2212
79
79
  iatoolkit/templates/change_password.html,sha256=DFfQSFcZ2YJZNFis2IXfzEKStxTf4i9f4eQ_6GiyNs8,2342
80
- iatoolkit/templates/chat.html,sha256=pQm1vDikaSsvleJK0LglL1BAeoLbwPLe4FYtLIsW4T8,9451
81
- iatoolkit/templates/chat_modals.html,sha256=3CQ430bwhebq6rAJ6Bk12PQDjt9YenqNXm5thC5WP2Y,5771
80
+ iatoolkit/templates/chat.html,sha256=N_DMuh2YwunlAkHalzUt8Soh3kFIaWBlN1hRqa3zDWM,9477
81
+ iatoolkit/templates/chat_modals.html,sha256=tMyVPiZ904nm7wXFN3TWf4CTgOSgtJA7TRhCPmawaj0,5795
82
82
  iatoolkit/templates/error.html,sha256=BNF-7z8AYL5vF4ZMUFMrOBt8c85kCFrm9qSHn9EiHWg,540
83
83
  iatoolkit/templates/forgot_password.html,sha256=1lUbKg9CKnQdnySplceY_pibwYne1-mOlM38fqI1kW8,1563
84
84
  iatoolkit/templates/header.html,sha256=179agI7rnYwP_rvJNXIiVde5E8Ec5649_XKq6eew2Hk,1263
@@ -104,7 +104,7 @@ iatoolkit/views/tasks_review_view.py,sha256=keLsLCyOTTlcoIapnB_lbuSvLwrPVZVpBiFC
104
104
  iatoolkit/views/tasks_view.py,sha256=a3anTXrJTTvbQuc6PSpOzidLKQFL4hWa7PI2Cppcz8w,4110
105
105
  iatoolkit/views/user_feedback_view.py,sha256=G37zmP8P4LvZrSymNJ5iFXhLZg1A3BEwRfTpH1Iam5w,2652
106
106
  iatoolkit/views/verify_user_view.py,sha256=a3q4wHJ8mKAEmgbNTOcnX4rMikROjOR3mHvCr30qGGA,2351
107
- iatoolkit-0.16.5.dist-info/METADATA,sha256=HS5FkIYcEDoagSSP7VtBA5nFXxcrRcHAmIYbvjHqdpc,9301
108
- iatoolkit-0.16.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
109
- iatoolkit-0.16.5.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
110
- iatoolkit-0.16.5.dist-info/RECORD,,
107
+ iatoolkit-0.16.7.dist-info/METADATA,sha256=1_pD9jIOgsd99lhdxCUh_QqCdllBfTmsHALF2RJwnfs,9301
108
+ iatoolkit-0.16.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
109
+ iatoolkit-0.16.7.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
110
+ iatoolkit-0.16.7.dist-info/RECORD,,