How to regenerate the twiki pages for the trigger menu description.

Edit the spreadsheet with the description of each table.

Then use the python script

    python makeTwiky.py menu.ods

in order to generate one twiki page per luminosity. It needs the following files to be in the same directory:

odfDocument.py and odfParse.py provide a very basic interface to the XML content of an OpenOffice document, and were taken from http://code.google.com/p/py-odftools/.

odfExtra.py has a couple of extra functions to ease parsing the spreadsheet rows into simple python lists (the XML Element Iterator was taken from http://www.ibm.com/developerworks/library/x-tipgenr.html).

makeTwiky.py is the main script. It should be called with an OpenOffice spreadsheet as only argument, and will extract one twiki page for each sheet named "table XXX", where "XXX" is the trigger table name.

python25.py adds the any() and all() functions introduced in python 2.5 for python 2.4.x.

-- AndreaBocci - 12 Feb 2009

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2009-04-29 - AndreaBocci
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback