[Checkins] SVN: grok/trunk/doc/grok2html.py Fixed stray bug and removed comments so that all html files are built by default

Darryl Cousins darryl at darrylcousins.net.nz
Sat Aug 4 00:03:14 EDT 2007


Log message for revision 78574:
  Fixed stray bug and removed comments so that all html files are built by default

Changed:
  U   grok/trunk/doc/grok2html.py

-=-
Modified: grok/trunk/doc/grok2html.py
===================================================================
--- grok/trunk/doc/grok2html.py	2007-08-04 03:56:13 UTC (rev 78573)
+++ grok/trunk/doc/grok2html.py	2007-08-04 04:03:14 UTC (rev 78574)
@@ -56,7 +56,7 @@
         elif source.startswith("http"):
             print "Downloading %s" % source
             try:
-                response = urlopen(source)
+                response = urllib.urlopen(source)
                 self.source = response.read()
             except IOError, e:
                 if hasattr(e, 'reason'):
@@ -157,27 +157,27 @@
     os.chdir(source_dir)
 
     rest_files = []
-#    rest_files.append(RestFile('index', 
-#                              os.path.join(source_dir, 'index.txt'),
-#                              os.path.join(www_dir, 'index.html')))
-#    rest_files.append(RestFile('about', 
-#                              os.path.join(source_dir, 'about.txt'),
-#                              os.path.join(www_dir, 'about.html')))
-#    rest_files.append(RestFile('tutorial', 
-#                              os.path.join(source_dir, 'tutorial.txt'),
-#                              os.path.join(www_dir, 'tutorial.html')))
-#    rest_files.append(RestFile('mini-index', 
-#                              os.path.join(source_dir, 'minitutorials', 'index.txt'),
-#                              os.path.join(www_dir, 'minitutorials', 'index.html')))
-#    rest_files.append(RestFile('searching', 
-#                              os.path.join(source_dir, 'minitutorials', 'searching.txt'),
-#                              os.path.join(www_dir, 'minitutorials', 'searching.html')))
-#    rest_files.append(RestFile('macros', 
-#                              os.path.join(source_dir, 'minitutorials', 'macros.txt'),
-#                              os.path.join(www_dir, 'minitutorials', 'macros.html')))
-#    rest_files.append(RestFile('zc.buildout', 
-#                  'http://svn.zope.org/*checkout*/zc.buildout/trunk/doc/tutorial.txt',
-#                  os.path.join(www_dir, 'minitutorials', 'buildout.html')))
+    rest_files.append(RestFile('index', 
+                              os.path.join(source_dir, 'index.txt'),
+                              os.path.join(www_dir, 'index.html')))
+    rest_files.append(RestFile('about', 
+                              os.path.join(source_dir, 'about.txt'),
+                              os.path.join(www_dir, 'about.html')))
+    rest_files.append(RestFile('tutorial', 
+                              os.path.join(source_dir, 'tutorial.txt'),
+                              os.path.join(www_dir, 'tutorial.html')))
+    rest_files.append(RestFile('mini-index', 
+                              os.path.join(source_dir, 'minitutorials', 'index.txt'),
+                              os.path.join(www_dir, 'minitutorials', 'index.html')))
+    rest_files.append(RestFile('searching', 
+                              os.path.join(source_dir, 'minitutorials', 'searching.txt'),
+                              os.path.join(www_dir, 'minitutorials', 'searching.html')))
+    rest_files.append(RestFile('macros', 
+                              os.path.join(source_dir, 'minitutorials', 'macros.txt'),
+                              os.path.join(www_dir, 'minitutorials', 'macros.html')))
+    rest_files.append(RestFile('zc.buildout', 
+                  'http://svn.zope.org/*checkout*/zc.buildout/trunk/doc/tutorial.txt',
+                  os.path.join(www_dir, 'minitutorials', 'buildout.html')))
     template = PageTemplateFile(os.path.join(source_dir, 'template.pt'))
     create_html(rest_files, template)
 



More information about the Checkins mailing list