ShiftLeader Report Presentation
The ShiftLeaderReportPresentationView
calls the ShiftLeaderReportPresentation
class (in shiftleader/utiltities/shiftleader_report_presentation.py
) which
creates an Open Document Format Presentation using odfpy
.
Similarly to the ShiftLeaderView
, the backbone of this view is also the
TrackerCertificationQuerySet
.
Notes & Tips
Warning
The OpenDocumentFormat can be very confusing at first.
You are advised to follow some simple examples found in the
odfpy
repository.
Based on those, these prototypes
were created to test different setups and combinations.
Style
s suck
File format
OpenDocumentFormat files are actually archives, containing two very important files:
styles.xml
content.xml
Styles
Some styles must have specific names, while automaticstyles
do not have this requirement.
Automatic styles location
automaticstyles
are stored in content.xml
Making an ODF file programmatically
You are generally advised to make changes to an existing .odp
/.odt
file and
then open them as archives to check the contents.xml
and styles.xml
files
to see how those are structured, instead of trying to understand the vast
specification from scratch.
Links
- OASIS Open Document Format 1.2 Specification
odfpy
(Contains examples and reference, albeit not so good)