CMS 3D CMS Logo

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

Functions

def generateConfigFilesPage
 

Variables

list PROJECT_LOCATION = sys.argv[1]
 

Function Documentation

def configfiles.generateConfigFilesPage (   PROJECT_LOCATION)

Definition at line 3 of file configfiles.py.

References join().

3 
4 def generateConfigFilesPage(PROJECT_LOCATION):
5  input = open(PROJECT_LOCATION+"/doc/html/namespaces.html", "r")
6  lines = input.read()
7  input.close()
8 
9  # put nasty UL list to one line
10  lines = lines.replace("\n<ul>", "<ul>")
11  lines = lines.replace("<ul>\n", "<ul>")
12  lines = lines.replace("\n</ul>", "</ul>")
13  lines = lines.replace("</ul>\n", "</ul>")
14  lines = lines.replace("\n<li>", "<li>")
15  lines = lines.replace("<li>\n", "<li>")
16 
17 
18  lines = lines.split("\n")
19  html = []
20 
21  contentStarted = False # table content started
22  for line in lines:
23  append = True; # line is cff or cfi or cfg
24 
25  if (line.find("</table>") != -1) and (contentStarted):
26  contentStarted = False
27 
28  if (contentStarted):
29  if (line.find("<tr><td class=\"indexkey\">") == -1): # Line stucture is wrong
30  append = False;
31  else:
32  if (line.find("__cff.html") == -1) and \
33  (line.find("__cfg.html") == -1) and \
34  (line.find("__cfi.html") == -1):
35  append = False;
36 
37  if (line.find("<table>") != -1) and (not contentStarted):
38  contentStarted = True
39 
40  if (append):
41  html.append(line)
42 
43  # end "for line in lines"
44 
45  html = "\n".join(html)
46 
47  output = open(PROJECT_LOCATION+"/doc/html/configfiles.html", "w")
48  output.write(html)
49  output.close()
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def generateConfigFilesPage
Definition: configfiles.py:3

Variable Documentation

list configfiles.PROJECT_LOCATION = sys.argv[1]

Definition at line 51 of file configfiles.py.