• Alexandre Boeglin's avatar
    Added the OOoBuilder class. · c9133ab4
    Alexandre Boeglin authored
      This class is used to produce dynamic OpenOffice.org documents :
    
      - create a normal document, with the layout you like
      - extract the content.xml file from it
      - put some "tal:replace", "tal:repeat" and "tal:content" in it
      - store the OpenOffice.org document as File in ZODB
      - store the content.xml file as Page Template in ZODB
      - call the Page Template on some context to have the tal being interpreted
      - use OOoBuilder to reinject the Page Template in the document
      - Render the OOoBuilder object,
        it will spit the nicely filled OpenOffice.org document
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3517 20353a03-c40f-0410-a6d1-a30d3c3de9de
    c9133ab4
OOoUtils.py 14.6 KB