# HG changeset patch
# User amit@thunder
# Date 1271065742 -19800
# Node ID 8af288a4c1a906e9834fcb2673ae1668b0a1a836
# Parent 7d7df551459b0b2690209c3eacf67599694cd3ea
copyright info added
diff -r 7d7df551459b -r 8af288a4c1a9 SEESenv/scripts/finalhtml.py
--- a/SEESenv/scripts/finalhtml.py Mon Apr 12 15:14:31 2010 +0530
+++ b/SEESenv/scripts/finalhtml.py Mon Apr 12 15:19:02 2010 +0530
@@ -118,9 +118,9 @@
except TypeError:
print file_name
add_footer_string="""
"""
+
© Copyright 2009, Prabhu Ramachandran, Asokan Pichai, Shantanu Choudhary, Puneeth Chaganti, Santosh G. Vattam, Kadambari Devararajan, Madhusudan.C.S."""
- position=len(soup.findall('div'))
+ position=len(soup.findAll('div'))
@@ -128,13 +128,13 @@
soup.html.body.insert(0,NavigableString(body_add_string))
- soup.html.body.insert(position+1,NavigableString(add_footer_string)
- # handling adding footer
+ soup.html.body.insert(position+1,NavigableString(add_footer_string))
+
return soup
if __name__=='__main__':
- file_names=glob.glob(os.path.join(repo,'ch4strings_dicts.html'))
+ file_names=glob.glob(os.path.join(repo,'ch*.html'))
for file_name in file_names:
file_obj=open(file_name,'r')
soup=finalchanges(file_name,file_obj.read())