mbu-dev-shared-components 0.4.0__tar.gz → 0.4.2__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.4.0 → mbu_dev_shared_components-0.4.2}/PKG-INFO +1 -2
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/README.md +0 -1
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/objects.py +13 -2
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/solteqtand/app_handler.py +23 -27
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -2
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/pyproject.toml +1 -1
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/LICENSE +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/romexis/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/romexis/db_handler.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/solteqtand/db_handler.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/solteqtand/helper_functions.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.4.0 → mbu_dev_shared_components-0.4.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mbu_dev_shared_components
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: MBU <rpa@mbu.aarhus.dk>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -37,7 +37,6 @@ MBU Dev Shared Components is a Python library that provides helper modules to st
|
|
|
37
37
|
- Excel
|
|
38
38
|
- **SAP Integration**
|
|
39
39
|
- **Solteq Tand Integration**
|
|
40
|
-
- **Romexis Integration**
|
|
41
40
|
- **Utility Modules**:
|
|
42
41
|
- JSON handling
|
|
43
42
|
- Fernet encryption
|
|
@@ -34,7 +34,7 @@ class CaseDataJson:
|
|
|
34
34
|
}
|
|
35
35
|
return case_data
|
|
36
36
|
|
|
37
|
-
def search_case_folder_data_json(self, case_type_prefix: CaseTypePrefix, person_full_name: str, person_id: str, person_ssn: str) -> str:
|
|
37
|
+
def search_case_folder_data_json(self, case_type_prefix: CaseTypePrefix, person_full_name: str, person_id: str, person_ssn: str, case_title: str = None) -> str:
|
|
38
38
|
"""
|
|
39
39
|
Creates a JSON string representing a search string for case folder with the provided attributes.
|
|
40
40
|
|
|
@@ -70,7 +70,18 @@ class CaseDataJson:
|
|
|
70
70
|
"LogicalOperator": "AND",
|
|
71
71
|
"ExcludeDeletedCases": "True",
|
|
72
72
|
"ReturnCasesNumber": "1"
|
|
73
|
-
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if case_title is not None:
|
|
76
|
+
# Optionally add case_title to your search criteria
|
|
77
|
+
search_case_folder_data["FieldProperties"].append({
|
|
78
|
+
"InternalName": "ows_CaseTitle",
|
|
79
|
+
"Value": case_title,
|
|
80
|
+
"DataType": "Text",
|
|
81
|
+
"ComparisonType": "Equal",
|
|
82
|
+
"IsMultiValue": "False"
|
|
83
|
+
})
|
|
84
|
+
|
|
74
85
|
return search_case_folder_data
|
|
75
86
|
|
|
76
87
|
|
|
@@ -16,7 +16,7 @@ class ManualProcessingRequiredError(Exception):
|
|
|
16
16
|
"""
|
|
17
17
|
Custom exception raised when the patient cannot be opened due incorrect SSN.
|
|
18
18
|
"""
|
|
19
|
-
def __init__(self, message="Error occurred while
|
|
19
|
+
def __init__(self, message="Error occurred while handling the patient."):
|
|
20
20
|
super().__init__(message)
|
|
21
21
|
|
|
22
22
|
|
|
@@ -49,7 +49,6 @@ class SolteqTandApp:
|
|
|
49
49
|
app_path (str): Path to the application.
|
|
50
50
|
username (str): Username for login.
|
|
51
51
|
password (str): Password for login.
|
|
52
|
-
ssn (str): SSN for lookup.
|
|
53
52
|
"""
|
|
54
53
|
self.app_path = app_path
|
|
55
54
|
self.username = username
|
|
@@ -514,13 +513,8 @@ class SolteqTandApp:
|
|
|
514
513
|
control_type=50002,
|
|
515
514
|
automation_id="chkMoreRecipients"
|
|
516
515
|
)
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
# search_params={
|
|
520
|
-
# "AutomationId": "chkMoreRecipients"
|
|
521
|
-
# },
|
|
522
|
-
# search_depth=5
|
|
523
|
-
# )
|
|
516
|
+
|
|
517
|
+
|
|
524
518
|
if checkbox.GetTogglePattern().ToggleState != more_recepients:
|
|
525
519
|
checkbox.GetTogglePattern().Toggle()
|
|
526
520
|
|
|
@@ -651,6 +645,25 @@ class SolteqTandApp:
|
|
|
651
645
|
automation_id = "ButtonOk"
|
|
652
646
|
)
|
|
653
647
|
save_button.SendKeys('{ENTER}')
|
|
648
|
+
# Check for notification window pop up
|
|
649
|
+
try:
|
|
650
|
+
notification_ctrl = self.wait_for_control(
|
|
651
|
+
control_type=auto.PaneControl,
|
|
652
|
+
search_params={
|
|
653
|
+
'AutomationId': 'BookingNotificationsControl'
|
|
654
|
+
},
|
|
655
|
+
search_depth=3,
|
|
656
|
+
timeout=5
|
|
657
|
+
)
|
|
658
|
+
close_button = self.find_element_by_property(
|
|
659
|
+
control=notification_ctrl,
|
|
660
|
+
automation_id="ButtonCancel"
|
|
661
|
+
)
|
|
662
|
+
close_button.SendKeys('{ENTER}')
|
|
663
|
+
return
|
|
664
|
+
except TimeoutError:
|
|
665
|
+
pass
|
|
666
|
+
|
|
654
667
|
# Check for warning window pop up
|
|
655
668
|
try:
|
|
656
669
|
self.handle_error_on_booking_save(slct_button="ButtonChangeManual")
|
|
@@ -681,24 +694,7 @@ class SolteqTandApp:
|
|
|
681
694
|
|
|
682
695
|
raise ManualProcessingRequiredError
|
|
683
696
|
except TimeoutError:
|
|
684
|
-
pass
|
|
685
|
-
# Check for notification window pop up
|
|
686
|
-
try:
|
|
687
|
-
notification_ctrl = self.wait_for_control(
|
|
688
|
-
control_type=auto.PaneControl,
|
|
689
|
-
search_params={
|
|
690
|
-
'AutomationId': 'BookingNotificationsControl'
|
|
691
|
-
},
|
|
692
|
-
search_depth=3,
|
|
693
|
-
timeout=5
|
|
694
|
-
)
|
|
695
|
-
close_button = self.find_element_by_property(
|
|
696
|
-
control=notification_ctrl,
|
|
697
|
-
automation_id="ButtonCancel"
|
|
698
|
-
)
|
|
699
|
-
close_button.SendKeys('{ENTER}')
|
|
700
|
-
except TimeoutError:
|
|
701
|
-
pass
|
|
697
|
+
pass
|
|
702
698
|
|
|
703
699
|
# If warning when sending: press "ret manuelt" -> "annuler" -> return warning error
|
|
704
700
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mbu_dev_shared_components
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: MBU <rpa@mbu.aarhus.dk>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -37,7 +37,6 @@ MBU Dev Shared Components is a Python library that provides helper modules to st
|
|
|
37
37
|
- Excel
|
|
38
38
|
- **SAP Integration**
|
|
39
39
|
- **Solteq Tand Integration**
|
|
40
|
-
- **Romexis Integration**
|
|
41
40
|
- **Utility Modules**:
|
|
42
41
|
- JSON handling
|
|
43
42
|
- Fernet encryption
|
|
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
|