carj / pyPreservica

Python language binding for the Preservica API
https://pypreservica.readthedocs.io
Apache License 2.0
15 stars 2 forks source link

EntityAPI : 'str' has no attribute 'trim' #7

Closed redbeks closed 2 years ago

redbeks commented 2 years ago

Hi James,

Thank you for your work. It seems there is the use of the trim() function, not available in Python language in the source code, instead of the strip() function. e.g. in the EntityAPI in the export_opex_start() function, which the execution is giving the following error:

File "venv\lib\site-packages\pyPreservica\entityAPI.py", line 150, in export_opex_start value = kwargs.get("IncludeContent").trim() AttributeError: 'str' object has no attribute 'trim'. Did you mean: 'strip'?

thanks, R.

carj commented 2 years ago

Hi Thanks for the bug report, i have fixed the problem and uploaded a new version 1.2.3

Java code crept in somehow.