Some bug fixing
authoramit@thunder
Sun, 28 Feb 2010 21:41:27 +0530
changeset 38 194e1bdfd1cb
parent 37 33abbab466a2
child 39 bc65d8802897
Some bug fixing
SEESenv/scripts/myrst2xml.py
sees.hook
--- a/SEESenv/scripts/myrst2xml.py	Sun Feb 28 20:06:53 2010 +0530
+++ b/SEESenv/scripts/myrst2xml.py	Sun Feb 28 21:41:27 2010 +0530
@@ -36,12 +36,14 @@
     xml_file=tmp_folder+name+'.xml'
     print xml_file   
 #    a=open(xml_file,'w')
-    publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') 
-    
+    try:    
+        publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') 
+    except :
+        pass
 def walk(repo):
     global chapterno
 #    mainfolder='/home/hg/repos/sttp/'    
-    for readline in open('/home/hg/repos/SEES-hacks/SEESenv/scripts/index.config','r').readlines():
+    for readline in open('/home/hg/repos/SEES-hacks/index.config','r').readlines():
         chapterno+=1		
         filename=repo+readline
         convert2xml(filename)
--- a/sees.hook	Sun Feb 28 20:06:53 2010 +0530
+++ b/sees.hook	Sun Feb 28 21:41:27 2010 +0530
@@ -1,7 +1,5 @@
 repo="/home/hg/repos/SEES-hacks/SEESenv/scripts"
 temp_dir="/home/hg/repos/SEES-hacks"
-echo $temp_dir/temp
-echo $repo/myrst2xml.py
 
 mkdir $temp_dir/temp
 python $repo/myrst2xml.py
@@ -9,7 +7,6 @@
 python $repo/autoid.py
 python $repo/docbook2html.py
 python $repo/finalhtml.py
-
 cp $temp_dir/temp/*.html /home/amit/repos/SEES-hacks/SEESenv/web/html/
 cp $temp_dir/temp/p_list.py /home/amit/repos/SEES-hacks/SEESenv/web/hgbook/comments/
-rm -r $temp_dir/temp
+