Changes in Path
authoramit@thunder
Thu, 25 Feb 2010 18:53:51 +0530
changeset 30 f66b0a5ebf40
parent 29 5ce5b22a9a0b
child 31 06a02dd3966f
Changes in Path
SEESenv/scripts/finalhtml.py
SEESenv/scripts/myrst2xml.py
SEESenv/scripts/rst2docbook.py
SEESenv/web/hgbook.conf~
SEESenv/web/texpand.py~
--- a/SEESenv/scripts/finalhtml.py	Thu Feb 25 17:06:32 2010 +0530
+++ b/SEESenv/scripts/finalhtml.py	Thu Feb 25 18:53:51 2010 +0530
@@ -4,7 +4,7 @@
 import os
 from BeautifulSoup import BeautifulSoup
 import time
-temp_dir='/home/hg/repos/SEES-hacks/'
+temp_dir='/home/hg/repos/SEES-hacks/temp/'
 
 
 def finalchanges(file_name,html_string):
--- a/SEESenv/scripts/myrst2xml.py	Thu Feb 25 17:06:32 2010 +0530
+++ b/SEESenv/scripts/myrst2xml.py	Thu Feb 25 18:53:51 2010 +0530
@@ -15,7 +15,7 @@
 from docutils.core import publish_file 
 import os
 chapterno=0
-tmp_folder="/home/hg/repos/SEES-hacks/"
+tmp_folder="/home/hg/repos/SEES-hacks/temp/"
 
 
 
@@ -37,10 +37,10 @@
     publish_file(source_path=file, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') 
 def walk(repo):
     global chapterno
-    mainfolder='/home/hg/repos/sttp/'    
+#    mainfolder='/home/hg/repos/sttp/'    
     for readline in open('index.config','r').readlines():
         chapterno+=1		
-        filename=mainfolder+readline
+        filename=repo+readline
         convert2xml(filename)
 
 
@@ -48,7 +48,7 @@
 
 
 if __name__=='__main__':
-    repo='/home/amit/sphinxvirt/review/'
+    repo='/home/hg/repos/sttp/'
     walk(repo)
 #    convert(1,2,3)
 
--- a/SEESenv/scripts/rst2docbook.py	Thu Feb 25 17:06:32 2010 +0530
+++ b/SEESenv/scripts/rst2docbook.py	Thu Feb 25 18:53:51 2010 +0530
@@ -13,7 +13,7 @@
 import os
 import pkg_resources
 import glob, os, re, sys
-names = glob.glob('ch*.xml')
+names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.xml')
 """
 chapterno=0
 
--- a/SEESenv/web/hgbook.conf~	Thu Feb 25 17:06:32 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,111 +0,0 @@
-# -*- apache -*-
-
-<VirtualHost *:80>
-#    ServerName hgbook.red-bean.com
-#    ServerAdmin bos@serpentine.com
-    ServerAdmin webmaster@localhost
-    ErrorLog /var/log/apache2/error.log
-#    ErrorLog logs/hgbook-error_log
-    # Debian:
-    # CustomLog logs/hgbook-access_log full
-    # Fedora:
-#    CustomLog logs/hgbook-access_log combined
-	CustomLog /var/log/apache2/access.log combined
-#    Options +MultiViews
-#    DirectoryIndex index.html.var index.html
-#    DocumentRoot "/home/amit/hgbook-alqua/web/html"
-
-
-#    Redirect permanent /hgbook.html /index.html
-#    Redirect permanent /hgbookch1.html /read/preface.html
-#    Redirect permanent /hgbookch2.html /read/a-tour-of-mercurial-the-basics.html
-#    Redirect permanent /hgbookch3.html /read/a-tour-of-mercurial-merging-work.html
-#    Redirect permanent /hgbookch4.html /read/behind-the-scenes.html
-#    Redirect permanent /hgbookch5.html /read/mercurial-in-daily-use.html
-#    Redirect permanent /hgbookch6.html /read/file-names-and-pattern-matching.html
-#    Redirect permanent /hgbookch6.html /read/managing-releases-and-branchy-development.html
-#    Redirect permanent /hgbookch7.html /read/finding-and-fixing-mistakes.html
-#    Redirect permanent /hgbookch8.html /read/handling-repository-events-with-hooks.html
-#    Redirect permanent /hgbookch9.html /read/customizing-the-output-of-mercurial.html
-#    Redirect permanent /hgbookch10.html /read/managing-change-with-mercurial-queues.html
-#    Redirect permanent /hgbookch11.html /read/advanced-uses-of-mercurial-queues.html
-#    Redirect permanent /hgbookch12.html /read/adding-functionality-with-extensions.html
-#    Redirect permanent /hgbookap1.html /read/command-reference.html
-#    Redirect permanent /hgbookap2.html /read/mercurial-queues-reference.html
-#    Redirect permanent /hgbookap3.html /read/installing-mercurial-from-source.html
-#    Redirect permanent /hgbookap4.html /read/open-publication-license.html
-#    Redirect permanent /hgbookli1.html /read/index.html
-#    Redirect permanent /hgbookli2.html /read/index.html
-#    Redirect permanent /hgbookli3.html /read/index.html
-#    Redirect permanent /hgbookli4.html /read/index.html
-
-	WSGIScriptAlias /review /home/amit/hgbook-alqua/web/hgbook/run.wsgi
-
-
-
-    # Actively redirect requests via a ServerAlias to the canonical hostname.
-    RewriteEngine On
-#    RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com
-#    RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R]
-
-#    <Location "/">
-#        SetHandler python-program
-	# hg clone http://bitbucket.org/mirror/django-trunk/
-#        PythonPath "['/home/amit/hgbook-alqua/web/hgbook'] + sys.path"
-#        PythonHandler django.core.handlers.modpython
-#       PythonAutoReload Off
-#        SetEnv DJANGO_SETTINGS_MODULE hgbook.settings
-#        PythonDebug Off
-#    </Location>
-
-
-	
-    <Location ~ "^/$">
-        SetHandler None
-        DirectoryIndex index.html
-    </Location>
-
-    <Location ~ "^/index.html">
-        SetHandler None
-    </Location>
-
-    <Location ~ "^/robots.txt">
-        SetHandler None
-    </Location>
-
-    <Location "/read">
-        SetHandler None
-    </Location>
-
-    <Location "/support">
-        SetHandler None
-    </Location>
-
-    <Location "/media">
-        SetHandler None
-    </Location>
-
-#    Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media
-
-    <Directory "/home/amit/hgbook-alqua/en/html">
-        Options Indexes FollowSymlinks
-        AllowOverride None
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    <Directory "/home/amit/hgbook-alqua/en/html">
-        AllowOverride AuthConfig
-    </Directory>
-
-    <Directory "/home/amit/hgbook-alqua/web/support">
-        Options None
-    </Directory>
-</VirtualHost>
-
-#<Directory "/home/bos/hg/django-trunk/django/contrib/admin/media">
-#    Options None
-#    AllowOverride None
-#    Order allow,deny
-#    Allow from all
-#</Directory>
--- a/SEESenv/web/texpand.py~	Thu Feb 25 17:06:32 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-#
-# Use Django's template machinery to expand static web pages.  First
-# tries the default template path for a particular installation, then
-# looks for templates in the filesystem.
-
-import sys
-sys.path.append('/home/amit/hgbook-alqua/web/hgbook')
-from django.template import Context, TemplateDoesNotExist
-from django.template.loader import get_template, get_template_from_string
-from django.core.management import setup_environ
-import hgbook.settings as settings
-
-
-setup_environ(settings)
-c = Context()
-
-if len(sys.argv) == 2:
-    in_name = sys.argv[1]
-    out_name = 'stdout'
-    out_fp = sys.stdout
-elif len(sys.argv) == 3:
-    in_name = sys.argv[1]
-    out_name = sys.argv[2]
-    out_fp = None
-else:
-    print >> sys.stderr, 'Usage: %s template-file [output-file]'
-    sys.exit(1)
-    
-try:
-    t = get_template(in_name)
-except TemplateDoesNotExist:
-    t = get_template_from_string(open(in_name).read(), name=in_name)
-if out_fp is None:
-    out_fp = open(out_name, 'w')
-out_fp.write(t.render(c))
-out_fp.close()