Variables | |
tuple | argc = len(argv) |
list | directory = argv[1] |
tuple | htaccess = open("%s/.htaccess"%directory,"w") |
string | htaccess_content |
RelMon: a tool for automatic Release Comparison https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon. | |
string | pkl_dir = "%s_pkls" |
tuple dir2webdir::argc = len(argv) |
Definition at line 41 of file dir2webdir.py.
Referenced by CmsShowMain::CmsShowMain(), do_work(), ExternalLHEProducer::executeScript(), main(), CommandLine::parse(), optutl::CommandLineParser::parseArguments(), and hitfit::Defaults_Textrep::process_args().
list dir2webdir::directory = argv[1] |
Definition at line 47 of file dir2webdir.py.
tuple dir2webdir::htaccess = open("%s/.htaccess"%directory,"w") |
Definition at line 70 of file dir2webdir.py.
string dir2webdir::htaccess_content |
00001 """ 00002 RewriteEngine on 00003 00004 RewriteCond %{HTTP:Accept-Encoding} gzip 00005 RewriteRule (.*)\.html$ $1\.htmlgz [L] 00006 RewriteRule (.*)\.png$ $1\.pnggz [L] 00007 00008 AddType "text/html;charset=UTF-8" .htmlgz 00009 AddEncoding gzip .htmlgz 00010 00011 AddType "image/png" .pnggz 00012 AddEncoding gzip .pnggz 00013 00014 DirectoryIndex RelMonSummary.htmlgz 00015 00016 """
RelMon: a tool for automatic Release Comparison https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon.
Danilo Piparo CERN - danilo.piparo@cern.ch
Transform all html files into a directory into .htmlgz files and add the .htaccess file to tell Apache to serve the new compressed data. Moves also the pickles away.
Definition at line 19 of file dir2webdir.py.
string dir2webdir::pkl_dir = "%s_pkls" |
Definition at line 56 of file dir2webdir.py.