safeshield 1.0.8__py3-none-any.whl → 1.0.9__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 safeshield might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeshield
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: Library for Help Validation Control
5
5
  Home-page: https://github.com/WunsunTarniho/py-guard
6
6
  Author: Wunsun Tarniho
@@ -51,3 +51,6 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
51
51
 
52
52
  ## v1.0.8 (2024-07-20)
53
53
  - Fixed: Libary deprecated.
54
+
55
+ ## v1.0.8 (2024-07-20)
56
+ - Fixed: Libary deprecated.
@@ -4,7 +4,7 @@ validator/factory.py,sha256=bImQNLhEJg5VTxtHiMYVb2EbHWvimTDqHq-UcA8uolw,812
4
4
  validator/core/__init__.py,sha256=ZcqlXJSk03i_CVzmIN-nVe1UOyvwwO5jhbEj7f62Y_o,59
5
5
  validator/core/validator.py,sha256=00qVnbH-EJC5KALlaoUBLAfsszAFLcoSxfRbmy0amyk,12751
6
6
  validator/database/__init__.py,sha256=O-cB6-MhNapJ3iwe5jvifbMfr1dPjXLtEdfNTKIu0hc,171
7
- validator/database/detector.py,sha256=mPNZlOgwNBPNwL_XcKSmT6H5Bq370nMkqqMMOqkM9WY,9568
7
+ validator/database/detector.py,sha256=8AsrsK4J4pQKc40G0QVZ2yf_cb1yU-N-YcRAWqJVBmo,10030
8
8
  validator/database/manager.py,sha256=Ezz4NUh22Hz2puh-NJggSGCaw3lAGyp3V88plMeBBVU,6232
9
9
  validator/rules/__init__.py,sha256=nDE3qoI82qJTCbILLUWkXuwsMOmsDtB1m-3IGIvRfpY,919
10
10
  validator/rules/array.py,sha256=tx8FCDqn-27Vs7tgtjeoCE9ceDMVrdBEb2-pq-lNLuo,2809
@@ -24,8 +24,8 @@ validator/services/rule_error_handler.py,sha256=MGvvkP6hbZLpVXxC3xpzg15OmVdPlk7l
24
24
  validator/services/rule_preparer.py,sha256=jRcMNjqq2xyZjO64Pim8jWmja5DmTzf0V_uuHG0lJTg,5621
25
25
  validator/utils/__init__.py,sha256=Yzo-xv285Be-a233M4duDdYtscuHiuBbPSX_C8yViJI,20
26
26
  validator/utils/string.py,sha256=0YACzeEaWNEOR9_7O9A8D1ItIbtWfOJ8IfrzcB8VMYA,515
27
- safeshield-1.0.8.dist-info/LICENSE,sha256=qugtRyKckyaks6hd2xyxOFSOYM6au1N80pMXuMTPvC4,1090
28
- safeshield-1.0.8.dist-info/METADATA,sha256=EkziodcnGss5kWdAO1I3WBZ5EaTKpHK2v1tkBJsGoh0,1593
29
- safeshield-1.0.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
30
- safeshield-1.0.8.dist-info/top_level.txt,sha256=iUtV3dlHOIiMfLuY4pruY00lFni8JzOkQ3Nh1II19OE,10
31
- safeshield-1.0.8.dist-info/RECORD,,
27
+ safeshield-1.0.9.dist-info/LICENSE,sha256=qugtRyKckyaks6hd2xyxOFSOYM6au1N80pMXuMTPvC4,1090
28
+ safeshield-1.0.9.dist-info/METADATA,sha256=DzqrNo-_NeXSigNmwZmlxJraF3raIj5BEgzF-UavHec,1648
29
+ safeshield-1.0.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
30
+ safeshield-1.0.9.dist-info/top_level.txt,sha256=iUtV3dlHOIiMfLuY4pruY00lFni8JzOkQ3Nh1II19OE,10
31
+ safeshield-1.0.9.dist-info/RECORD,,
@@ -59,6 +59,14 @@ class DatabaseAutoDetector:
59
59
  """Detect Odoo database configuration"""
60
60
  try:
61
61
  from odoo.tools import config
62
+ print({
63
+ 'type': 'postgresql', # Odoo selalu menggunakan PostgreSQL
64
+ 'host': config['db_host'] or 'localhost',
65
+ 'port': str(config['db_port'] or 5432),
66
+ 'username': config['db_user'] or 'odoo',
67
+ 'password': config['db_password'] or '',
68
+ 'database': config['db_name']
69
+ }, 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee')
62
70
  return {
63
71
  'type': 'postgresql', # Odoo selalu menggunakan PostgreSQL
64
72
  'host': config['db_host'] or 'localhost',