eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
308 stars 63 forks source link

What is my mistake with ChangedRegion ? #108

Closed pcece closed 2 years ago

pcece commented 2 years ago

Hello,

Many thanks for this library. I would like to manage Revision Marks in an ODT document. So I need to create a ChangedRegion element. But I'm not able to create a ChangedRegion since I'm not able to set the required id parameter. If I have correctly uderstood ChangedRegion(id = " ...") is not possible.

Did I miss something ?

Many thanks in advance.

Best regards.

pcece commented 2 years ago

I found the workaround.

cr = ChangedRegion(attributes={'id':'122345'}, check_grammar=False)