pyxecm 1.4__py3-none-any.whl → 1.5__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 pyxecm might be problematic. Click here for more details.
- pyxecm/__init__.py +3 -0
- pyxecm/coreshare.py +2636 -0
- pyxecm/customizer/__init__.py +4 -0
- pyxecm/customizer/browser_automation.py +164 -54
- pyxecm/customizer/customizer.py +451 -235
- pyxecm/customizer/k8s.py +6 -6
- pyxecm/customizer/m365.py +1136 -221
- pyxecm/customizer/payload.py +13163 -5844
- pyxecm/customizer/pht.py +503 -0
- pyxecm/customizer/salesforce.py +694 -114
- pyxecm/customizer/sap.py +4 -4
- pyxecm/customizer/servicenow.py +1221 -0
- pyxecm/customizer/successfactors.py +1056 -0
- pyxecm/helper/__init__.py +2 -0
- pyxecm/helper/assoc.py +24 -1
- pyxecm/helper/data.py +1527 -0
- pyxecm/helper/web.py +170 -46
- pyxecm/helper/xml.py +170 -34
- pyxecm/otac.py +309 -23
- pyxecm/otcs.py +2779 -698
- pyxecm/otds.py +347 -108
- pyxecm/otmm.py +808 -0
- pyxecm/otpd.py +13 -10
- {pyxecm-1.4.dist-info → pyxecm-1.5.dist-info}/METADATA +3 -1
- pyxecm-1.5.dist-info/RECORD +30 -0
- {pyxecm-1.4.dist-info → pyxecm-1.5.dist-info}/WHEEL +1 -1
- pyxecm-1.4.dist-info/RECORD +0 -24
- {pyxecm-1.4.dist-info → pyxecm-1.5.dist-info}/LICENSE +0 -0
- {pyxecm-1.4.dist-info → pyxecm-1.5.dist-info}/top_level.txt +0 -0
pyxecm/otpd.py
CHANGED
|
@@ -248,18 +248,18 @@ class OTPD:
|
|
|
248
248
|
# Step2: fetch session id from the response, and hit j_security_check with proper authentication
|
|
249
249
|
# Step3: get session id from the response, add to self. It can be used for other transactions
|
|
250
250
|
session = requests.Session()
|
|
251
|
-
logger.
|
|
251
|
+
logger.debug("Initiating dummy rest call to Tomcat to get initial session id")
|
|
252
252
|
response = session.put(request_url, json=payload)
|
|
253
253
|
logger.info(response.text)
|
|
254
254
|
if response.ok:
|
|
255
|
-
logger.
|
|
255
|
+
logger.debug("Url to authenticate Tomcat for Session id -> %s", auth_url)
|
|
256
256
|
session_response = session.post(auth_url)
|
|
257
257
|
if session_response.ok:
|
|
258
|
-
logger.
|
|
258
|
+
logger.debug(
|
|
259
259
|
"Response for -> %s is -> %s", auth_url, str(session_response)
|
|
260
260
|
)
|
|
261
261
|
session_dict = session.cookies.get_dict()
|
|
262
|
-
logger.
|
|
262
|
+
logger.debug(
|
|
263
263
|
"Session id to perform Rest API calls to Tomcat -> %s",
|
|
264
264
|
session_dict["JSESSIONID"],
|
|
265
265
|
)
|
|
@@ -296,7 +296,7 @@ class OTPD:
|
|
|
296
296
|
request_url = self.config()["otpdImportDatabaseUrl"]
|
|
297
297
|
|
|
298
298
|
logger.info(
|
|
299
|
-
"Importing
|
|
299
|
+
"Importing PowerDocs database backup -> %s, into PowerDocs ServerManager on -> %s",
|
|
300
300
|
filename,
|
|
301
301
|
request_url,
|
|
302
302
|
)
|
|
@@ -308,7 +308,7 @@ class OTPD:
|
|
|
308
308
|
return response
|
|
309
309
|
else:
|
|
310
310
|
logger.error(
|
|
311
|
-
"Failed to
|
|
311
|
+
"Failed to import PowerDocs database backup -> %s into -> %s; error -> %s",
|
|
312
312
|
filename,
|
|
313
313
|
request_url,
|
|
314
314
|
response.text,
|
|
@@ -340,10 +340,11 @@ class OTPD:
|
|
|
340
340
|
|
|
341
341
|
request_url = self.config()["settingsUrl"]
|
|
342
342
|
|
|
343
|
-
logger.
|
|
344
|
-
"Update setting -> %s with value -> %s; calling -> %s",
|
|
343
|
+
logger.debug(
|
|
344
|
+
"Update PowerDocs setting -> %s with value -> %s (tenant -> %s); calling -> %s",
|
|
345
345
|
setting_name,
|
|
346
346
|
setting_value,
|
|
347
|
+
tenant_name,
|
|
347
348
|
request_url,
|
|
348
349
|
)
|
|
349
350
|
|
|
@@ -363,13 +364,15 @@ class OTPD:
|
|
|
363
364
|
return self.parse_request_response(response)
|
|
364
365
|
# Check if Session has expired - then re-authenticate and try once more
|
|
365
366
|
elif response.status_code == 401 and retries == 0:
|
|
366
|
-
logger.
|
|
367
|
+
logger.debug("Session has expired - try to re-authenticate...")
|
|
367
368
|
self.authenticate(True)
|
|
368
369
|
retries += 1
|
|
369
370
|
else:
|
|
370
371
|
logger.error(
|
|
371
|
-
"Failed to update setting -> %s; error -> %s",
|
|
372
|
+
"Failed to update PowerDocs setting -> %s with value -> %s (tenant -> %s); error -> %s",
|
|
372
373
|
setting_name,
|
|
374
|
+
setting_value,
|
|
375
|
+
tenant_name,
|
|
373
376
|
response.text,
|
|
374
377
|
)
|
|
375
378
|
return None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyxecm
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5
|
|
4
4
|
Summary: A Python library to interact with Opentext Extended ECM REST API
|
|
5
5
|
Author-email: Kai Gatzweiler <kgatzweiler@opentext.com>, "Dr. Marc Diefenbruch" <mdiefenb@opentext.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/opentext/pyxecm
|
|
@@ -23,6 +23,8 @@ Requires-Dist: suds
|
|
|
23
23
|
Requires-Dist: python-hcl2
|
|
24
24
|
Requires-Dist: xmltodict
|
|
25
25
|
Requires-Dist: lxml
|
|
26
|
+
Requires-Dist: openpyxl
|
|
27
|
+
Requires-Dist: pandas
|
|
26
28
|
Provides-Extra: customizer
|
|
27
29
|
Requires-Dist: python-hcl2 ; extra == 'customizer'
|
|
28
30
|
Requires-Dist: lxml ; extra == 'customizer'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
pyxecm/__init__.py,sha256=f0oWCTOUQrX9JuJZaP4r-5d493lSwvrGksu8xPxg4bI,253
|
|
2
|
+
pyxecm/coreshare.py,sha256=P23gGqnHFFP4akeC5ISSZXNwcNbDTFssXpIIDQdWvfI,95691
|
|
3
|
+
pyxecm/otac.py,sha256=i1-4nljJUedAsz842s4WXH_YjmEC-hZh66zEGhRS5Uw,21684
|
|
4
|
+
pyxecm/otcs.py,sha256=ZJvYOWiRnD_GutI6hM2923gap-xhWWtSG9jVuebE5YI,418633
|
|
5
|
+
pyxecm/otds.py,sha256=Q9ZHs1vQiPz2ZbkubjKUxX2r_Gl5F0NcqrWNXxllk1E,160812
|
|
6
|
+
pyxecm/otiv.py,sha256=nHEBQ9tddtKMiR1yPbGGP-jJiDaQpyoFmZcQFPgw22w,1720
|
|
7
|
+
pyxecm/otmm.py,sha256=pNy5oIk70duAlOEG3e43JxpQMQbCldRL9iD0KBGyUjU,28566
|
|
8
|
+
pyxecm/otpd.py,sha256=zRus7UnYYrwG9tYDPPLxBbGzozATwS07ftYun4kaaV4,12503
|
|
9
|
+
pyxecm/customizer/__init__.py,sha256=g32OUKoJiBYY4q9IMQctKTKq6YhFtv-IAIHcRC0KJu4,330
|
|
10
|
+
pyxecm/customizer/browser_automation.py,sha256=cbUTGBLmyYO7617QfNJCZtFCK0i8-2hfA6QhKSfuKOY,16430
|
|
11
|
+
pyxecm/customizer/customizer.py,sha256=7GHsuq2njG29xL5bLqdYe5eDcw2TpBgZMJOs6X4xKrY,86293
|
|
12
|
+
pyxecm/customizer/k8s.py,sha256=XMoLVQXxJwq51aXaYANwaqniYi7lqNnmVOmEkaqSuQY,36455
|
|
13
|
+
pyxecm/customizer/m365.py,sha256=emZOJX503-i3FWOqVXe26geiz_apFZiI-jWtoWJxE40,184000
|
|
14
|
+
pyxecm/customizer/payload.py,sha256=74n_KpNZ3s6ftDkjMP3fmsSHcrPXDb5gZrPgkcQ4Tiw,765958
|
|
15
|
+
pyxecm/customizer/pht.py,sha256=AxP8v8SbzkBZaxYDJ3Dqr330l29RJwzpkuKNIW46VjM,17348
|
|
16
|
+
pyxecm/customizer/salesforce.py,sha256=j2oqI4uzQdsl52hMMK9OyzL6Z3EUZYnvqEGQ_OscMEY,63787
|
|
17
|
+
pyxecm/customizer/sap.py,sha256=RNrHH0KjBQ10dHXoMaZIEd3EVPC8--4AN7nzy_Iv9k4,5947
|
|
18
|
+
pyxecm/customizer/servicenow.py,sha256=3ytAjLVKbWDL9MmTPPgPe7-bMDN1JLBQSGtkcGil20k,46745
|
|
19
|
+
pyxecm/customizer/successfactors.py,sha256=6hww4tKF_Bm2aLzFMStPuJmKJ4uBqteXwjWDkW0yDHU,38847
|
|
20
|
+
pyxecm/customizer/translate.py,sha256=RxC7O4lxfGaG1nttCm5WI5X2wEM4eEqbVcUtnYns1TQ,3968
|
|
21
|
+
pyxecm/helper/__init__.py,sha256=sScoB5RQAEkzP2LLvR_cRYwC1ARSdvBiv-4JwnJA7Dw,140
|
|
22
|
+
pyxecm/helper/assoc.py,sha256=MKjDgPYnRcuHkDMIvFMtYXiyMWPXpNie6UQrVgV0s-0,6488
|
|
23
|
+
pyxecm/helper/data.py,sha256=__B9FVwXBPpByaRaJ-l348po3dcaBXw4J1jVzQRy608,60308
|
|
24
|
+
pyxecm/helper/web.py,sha256=CYhJW4TgyHc2w9nV75YgGJR3fDHeUjQEMkulNI9U3E8,9263
|
|
25
|
+
pyxecm/helper/xml.py,sha256=SjMzZcFF37p50ESewF83bh5vl1oDOIjbYRLRZNVEeOU,31664
|
|
26
|
+
pyxecm-1.5.dist-info/LICENSE,sha256=z5DWWd5cHmQYJnq4BDt1bmVQjuXY1Qsp6y0v5ETCw-s,11360
|
|
27
|
+
pyxecm-1.5.dist-info/METADATA,sha256=NumUPC4fUYuiZJyN39qnYX1BqOBjUPXxYFPaP3w8N08,2076
|
|
28
|
+
pyxecm-1.5.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
29
|
+
pyxecm-1.5.dist-info/top_level.txt,sha256=TGak3_dYN67ugKFbmRxRG1leDyOt0T7dypjdX4Ij1WE,7
|
|
30
|
+
pyxecm-1.5.dist-info/RECORD,,
|
pyxecm-1.4.dist-info/RECORD
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
pyxecm/__init__.py,sha256=665ihX9KXfsUog3EL-zvfRkZzVE4h4XNRTT3ZEzRw5A,196
|
|
2
|
-
pyxecm/otac.py,sha256=wAP0RiwS4auU5erAvLIh04BzMoA_oCqJOTptMhxG0rY,11085
|
|
3
|
-
pyxecm/otcs.py,sha256=5OguHJMPO5kdC8yH-s3XRbDu3gOxnJf8eSbB0-3Z3tc,327041
|
|
4
|
-
pyxecm/otds.py,sha256=BRoV13-oWK2LWg2mjJShoaXug6IFheU9iz-sAL5V32A,150931
|
|
5
|
-
pyxecm/otiv.py,sha256=nHEBQ9tddtKMiR1yPbGGP-jJiDaQpyoFmZcQFPgw22w,1720
|
|
6
|
-
pyxecm/otpd.py,sha256=nsJTARblpxjosorEBf4b06Pmaftqjc_UJSzAqFKk24c,12320
|
|
7
|
-
pyxecm/customizer/__init__.py,sha256=1Hyo_vzbIKDUFyhwopI0W9E7NFbpVJevFMg3hTVhYSE,201
|
|
8
|
-
pyxecm/customizer/browser_automation.py,sha256=fzi2mNF9xh9xovJd4NGFpG4Od_XalG3-ZxxhAAH0lnw,12704
|
|
9
|
-
pyxecm/customizer/customizer.py,sha256=ys9jRmq_DppmBXxiOPbohv2_fsuJSbLNikYlYH6hbA8,76288
|
|
10
|
-
pyxecm/customizer/k8s.py,sha256=bSZPnN8iLLQSd1CB7ccWjT8CJOgpkEh73hZj6bp_B0w,36449
|
|
11
|
-
pyxecm/customizer/m365.py,sha256=DbpA4rDpDUVeDI87rXnwAuhp4k8U_AWthdJk7qJSJkg,144673
|
|
12
|
-
pyxecm/customizer/payload.py,sha256=v4JSd6m9iO0mlV5ZqcHKd3HvUbymkeW3FGO5b7xXNJc,437483
|
|
13
|
-
pyxecm/customizer/salesforce.py,sha256=hhxtFIUCe-1NxqhC1p_FPpN-WZJCdOI9xgwxrryHmWM,44048
|
|
14
|
-
pyxecm/customizer/sap.py,sha256=VKM4XTJhWHHQqvp2rMX-Lq-aAvAwSJUJO0maP0U61hg,5951
|
|
15
|
-
pyxecm/customizer/translate.py,sha256=RxC7O4lxfGaG1nttCm5WI5X2wEM4eEqbVcUtnYns1TQ,3968
|
|
16
|
-
pyxecm/helper/__init__.py,sha256=lc3nuJfygpKJuvqZhBfT54ZhtVbXp2uUi7PsrIXXWA0,116
|
|
17
|
-
pyxecm/helper/assoc.py,sha256=bzth2ItSFCOR1GiKBbp93VcItDRLWquQnvFOUex0z9I,5639
|
|
18
|
-
pyxecm/helper/web.py,sha256=JgZf_uSiSSRCQFktYKhYiodTo0G0EdHUk47lyesp4wk,4963
|
|
19
|
-
pyxecm/helper/xml.py,sha256=fB-wvnSZUm3DzLpJUtMesUaravotAxGDE6Ya8Pa8Azw,26677
|
|
20
|
-
pyxecm-1.4.dist-info/LICENSE,sha256=z5DWWd5cHmQYJnq4BDt1bmVQjuXY1Qsp6y0v5ETCw-s,11360
|
|
21
|
-
pyxecm-1.4.dist-info/METADATA,sha256=poF8xP2F726u5ibjq1ootxa6ya0x3_yBR7mow1YmPeM,2030
|
|
22
|
-
pyxecm-1.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
23
|
-
pyxecm-1.4.dist-info/top_level.txt,sha256=TGak3_dYN67ugKFbmRxRG1leDyOt0T7dypjdX4Ij1WE,7
|
|
24
|
-
pyxecm-1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|