CMS 3D CMS Logo

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

Variable Documentation

tuple dir2webdir::argc = len(argv)
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.

Initial value:
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.

Author:
dpiparo
Date:
2012/06/12 12:25:27
Revision:
1.1

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.