Author: bugman
Date: Fri Feb 6 10:54:14 2015
New Revision: 27583
URL: http://svn.gna.org/viewcvs/relax?rev=27583&view=rev
Log:
Updated the rehead.py script to include printouts of each file and to skip
special Epydoc files.
Modified:
website/api/rehead.py
Modified: website/api/rehead.py
URL:
http://svn.gna.org/viewcvs/relax/website/api/rehead.py?rev=27583&r1=27582&r2=27583&view=diff
==============================================================================
--- website/api/rehead.py (original)
+++ website/api/rehead.py Fri Feb 6 10:54:14 2015
@@ -68,15 +68,24 @@
if not search(".html$", file):
continue
+ # Full path to the file.
+ full_path = root + sep + file
+
+ # Printout.
+ print(full_path)
+
# Skip blacklisted files.
if file in BLACKLIST:
+ print(" Blacklisted.")
continue
-
- # Full path to the file.
- full_path = root + sep + file
# Extract the title.
title = self.extract_title(full_path)
+
+ # No title, so don't modify the file.
+ if title == None:
+ print(" Skipping.")
+ continue
# Process the head tag.
self.change_head(full_path, title=title)
@@ -137,6 +146,10 @@
analytics = False
self.short_head = False
for line in self.file_lines:
+ # Special Epydoc pages with captialised HEAD tags - skip these!
+ if search("<HEAD>", line):
+ return
+
# In the head tag.
if search("<head>", line):
in_head = True
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits