jesper-raemaekers / python-polarion

A Python package to access the Polarion WSDL API.
MIT License
56 stars 35 forks source link

Add argument for missing property repeatTableHeaders #125

Closed ThijsSassen closed 8 months ago

ThijsSassen commented 1 year ago

according to the latest Polarion api the exportDocumentToPDF function has 6 arguments: String paperSize, String orientation, boolean fitToPageWidth, boolean generateBookmarks, boolean includeHeaderFooter, boolean repeatTableHeaders

the current implementation was missing the repeatTableHeaders argument. This PR fixes that.

jesper-raemaekers commented 1 year ago

What version of Polarion is that? Because 21r2 does not have repeatTableHeaders.

I was well aware at some point there would be something version specific added, but there is nothing ready for that. I'm willing to accept a PR on this, but this needs to be optionally enabled then. Perhaps a version string in the Polarion class constructor.

ThijsSassen commented 1 year ago

@jesper-raemaekers this is on 23.04 we always use the latest version. If there is an api call to request a version we can make it depending on that version.

jesper-raemaekers commented 1 year ago

I've not found a nice API supported way, so that leaves me with 2 options:

  1. Let the user enter the version in the constructor
  2. Getting the version from the Polarion login page