CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Variables
dir2webdir Namespace Reference

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. More...
 
string pkl_dir = "%s_pkls"
 

Variable Documentation

tuple dir2webdir.argc = len(argv)
list dir2webdir.directory = argv[1]

Definition at line 44 of file dir2webdir.py.

tuple dir2webdir.htaccess = open("%s/.htaccess"%directory,"w")

Definition at line 67 of file dir2webdir.py.

string dir2webdir.htaccess_content
Initial value:
1 = """
2 RewriteEngine on
3 
4 RewriteCond %{HTTP:Accept-Encoding} gzip
5 RewriteRule (.*)\.html$ $1\.htmlgz [L]
6 RewriteRule (.*)\.png$ $1\.pnggz [L]
7 
8 AddType "text/html;charset=UTF-8" .htmlgz
9 AddEncoding gzip .htmlgz
10 
11 AddType "image/png" .pnggz
12 AddEncoding gzip .pnggz
13 
14 DirectoryIndex RelMonSummary.htmlgz
15 
16 """

RelMon: a tool for automatic Release Comparison https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon.

Danilo Piparo CERN - danil.nosp@m.o.pi.nosp@m.paro@.nosp@m.cern.nosp@m..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 16 of file dir2webdir.py.

string dir2webdir.pkl_dir = "%s_pkls"

Definition at line 53 of file dir2webdir.py.