SEESenv/web/hgbook/comments/views.py
changeset 6 1ce9b33fb6ff
parent 3 6cee07c589cb
--- a/SEESenv/web/hgbook/comments/views.py	Sat Feb 13 13:32:38 2010 +0530
+++ b/SEESenv/web/hgbook/comments/views.py	Sun Feb 21 13:14:37 2010 +0530
@@ -10,17 +10,12 @@
 from p_list import *
 from BeautifulSoup import BeautifulSoup
 import glob
-html_folder='/home/hg/repos/SEES-hacks/SEESenv/web/html/'
-
-def sort_dict(dict):
-	new_dict = {}
-	sorted_keys = dict.keys()
-	sorted_keys.sort()
-	print >> sys.stderr , sorted_keys
-	for key in sorted_keys:
-		new_dict[key] = dict[key]
-
-	return new_dict
+import os
+home_dir=os.getenv("HOME")
+if home_dir=='/home/amit':    
+    html_folder='/home/amit/SEES-hacks/SEESenv/web/html/'
+else:
+    html_folder='/home/hg/repos/SEES-hacks/SEESenv/web/html/'
 
 def dump_queries():
     # requires settings.DEBUG to be set to True in order to work