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