mbu-dev-shared-components 0.0.55__tar.gz → 0.0.57__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.
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/solteqtand/app_handler.py +21 -6
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/solteqtand/db_handler.py +9 -2
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -1
- mbu_dev_shared_components-0.0.55/.github/workflows/pylint.yml +0 -32
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/.gitignore +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/.pylintrc +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/LICENSE +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/README.md +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/pyproject.toml +0 -0
- {mbu_dev_shared_components-0.0.55 → mbu_dev_shared_components-0.0.57}/setup.cfg +0 -0
|
@@ -110,10 +110,16 @@ class SolteqTandApp:
|
|
|
110
110
|
"""
|
|
111
111
|
end_time = time.time() + timeout
|
|
112
112
|
while time.time() < end_time:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
try:
|
|
114
|
+
control = control_type(searchDepth=search_depth, **search_params)
|
|
115
|
+
if not control.Exists(0, 0):
|
|
116
|
+
return True
|
|
117
|
+
except Exception as e:
|
|
118
|
+
print(f"Error while searching for control: {e}")
|
|
119
|
+
|
|
116
120
|
time.sleep(0.5)
|
|
121
|
+
print(f"Retrying to find control: {search_params}...")
|
|
122
|
+
|
|
117
123
|
raise TimeoutError(f"Control with parameters {search_params} did not disappear within the timeout period.")
|
|
118
124
|
|
|
119
125
|
def start_application(self):
|
|
@@ -375,7 +381,6 @@ class SolteqTandApp:
|
|
|
375
381
|
note_message (str): The note message.
|
|
376
382
|
checkmark_in_complete (bool): Checks the checkmark in 'Afslut'.
|
|
377
383
|
"""
|
|
378
|
-
print(note_message)
|
|
379
384
|
self.open_tab("Journal")
|
|
380
385
|
|
|
381
386
|
self.wait_for_control(
|
|
@@ -398,7 +403,12 @@ class SolteqTandApp:
|
|
|
398
403
|
save_button.Click(simulateMove=False, waitTime=0)
|
|
399
404
|
|
|
400
405
|
def close_patient_window(self):
|
|
401
|
-
"""
|
|
406
|
+
"""
|
|
407
|
+
Closes the current patient's window and ensures the application returns to the main window.
|
|
408
|
+
|
|
409
|
+
Raises:
|
|
410
|
+
TimeoutError: If the patient window does not close within the expected time.
|
|
411
|
+
"""
|
|
402
412
|
|
|
403
413
|
title_bar_window = self.app_window.TitleBarControl()
|
|
404
414
|
title_bar_window.ButtonControl(Name="Luk").Click(simulateMove=False, waitTime=0)
|
|
@@ -417,7 +427,12 @@ class SolteqTandApp:
|
|
|
417
427
|
)
|
|
418
428
|
|
|
419
429
|
def close_solteq_tand(self):
|
|
420
|
-
"""
|
|
430
|
+
"""
|
|
431
|
+
Closes the SolteqTand application and confirms the closure.
|
|
432
|
+
|
|
433
|
+
Raises:
|
|
434
|
+
TimeoutError: If the application does not close within the expected time.
|
|
435
|
+
"""
|
|
421
436
|
self.app_window = self.wait_for_control(
|
|
422
437
|
auto.WindowControl,
|
|
423
438
|
{'AutomationId': 'FormFront'},
|
|
@@ -38,7 +38,7 @@ class SolteqTandDatabase:
|
|
|
38
38
|
result = {'data': dict(zip(columns, row)) for row in rows}
|
|
39
39
|
return result
|
|
40
40
|
|
|
41
|
-
def check_if_document_exists(self, filename: str):
|
|
41
|
+
def check_if_document_exists(self, filename: str, documenttype: str = None):
|
|
42
42
|
"""
|
|
43
43
|
Checks if a document with the given filename exists for the specified patient.
|
|
44
44
|
|
|
@@ -75,6 +75,7 @@ class SolteqTandDatabase:
|
|
|
75
75
|
ds.entityId,
|
|
76
76
|
ds.OriginalFilename,
|
|
77
77
|
ds.UniqueFilename,
|
|
78
|
+
ds.DocumentType,
|
|
78
79
|
ds.DocumentCreatedDate,
|
|
79
80
|
ds.DocumentLastEditedDate,
|
|
80
81
|
ds.SentToNemSMS,
|
|
@@ -86,7 +87,13 @@ class SolteqTandDatabase:
|
|
|
86
87
|
AND p.cpr = ?
|
|
87
88
|
AND ds.OriginalFilename = ?
|
|
88
89
|
"""
|
|
89
|
-
|
|
90
|
+
if documenttype:
|
|
91
|
+
query += " AND ds.DocumentType = ?"
|
|
92
|
+
params = (self.ssn, filename, documenttype)
|
|
93
|
+
else:
|
|
94
|
+
params = (self.ssn, filename)
|
|
95
|
+
|
|
96
|
+
return self._execute_query(query, params)
|
|
90
97
|
|
|
91
98
|
def check_extern_dentist(self):
|
|
92
99
|
"""
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: Linting
|
|
2
|
-
|
|
3
|
-
on: [push]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: windows-latest
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
python-version: ["3.11"]
|
|
11
|
-
fail-fast: false
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v3
|
|
14
|
-
- name: Set up Python ${{ matrix.python-version }}
|
|
15
|
-
uses: actions/setup-python@v3
|
|
16
|
-
with:
|
|
17
|
-
python-version: ${{ matrix.python-version }}
|
|
18
|
-
|
|
19
|
-
- name: Install dependencies
|
|
20
|
-
run: |
|
|
21
|
-
python -m pip install --upgrade pip
|
|
22
|
-
pip install pylint
|
|
23
|
-
pip install flake8
|
|
24
|
-
pip install .
|
|
25
|
-
|
|
26
|
-
- name: Analysing the code with pylint
|
|
27
|
-
run: |
|
|
28
|
-
pylint --rcfile=.pylintrc $(git ls-files '*.py')
|
|
29
|
-
|
|
30
|
-
- name: Analysing the code with flake8
|
|
31
|
-
run: |
|
|
32
|
-
flake8 --extend-ignore=E501,E251 $(git ls-files '*.py')
|
|
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
|