-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Word/DOCX-Eport: Applying python-docx #287
Comments
The evaluation notebook of 1e726cd in #288 contains some code- snippets to create a word file interacting directly with ZODB. The notebook code is quite minimalistic to get objects attribute values by the rest_api public functions. @zmsdev: But template based content aggregration will result in "AttributeError: REQUEST" due to ZMSObject.isVisible(self, REQUEST) and its call of self.isActive(REQUEST), Line 502: Lines 496 to 504 in f12ccd8
The function ObjAttrs.isActive() calls self.getType() and this will break, Line 551; Lines 656 to 708 in f12ccd8
|
Traditionally ZMS uses the XML-represenation of it's content for (XSL-based) transforming it into 3rd-party formats like Word-XML. Instead using XSL (and its efforts with debugging) a direct, pythonic objekt transformation by the python-docx-library may be more practical especially with complex content-models . python-docx is a Python library for creating and updating Microsoft Word (.docx) files:
https://python-docx.readthedocs.io/
The text was updated successfully, but these errors were encountered: