a80d7ee833e1

Fix file list for repo root.
[view raw] [browse files]
author Chris Eldredge <chris.eldredge@gmail.com>
date Tue, 25 Sep 2012 18:44:19 +0100
parents d25f60320cd4
children 68104e97f6d7
branches/tags (none)
files __init__.py

Changes

--- a/__init__.py	Sat Sep 22 16:00:22 2012 -0400
+++ b/__init__.py	Tue Sep 25 18:44:19 2012 +0100
@@ -2,7 +2,7 @@
 import sys
 
 # If using TortoiseHg, obtain Python-Markdown and tell Python where to find it:
-sys.path.append("c:/Program Files (x86)/MSBuild/The Motley Fool/Fool.Build/Resources/hgext.markdown/markdown-2.2.0-py2.7.egg")
+#sys.path.append("c:/python27/Lib/site-packages/markdown-2.2.0-py2.7.egg")
 
 import logging, markdown, mimetypes
 from mercurial import extensions, encoding, util
@@ -65,6 +65,9 @@
 	f = req.form.get('file', [''])[0]
 	parts = os.path.splitext(f)
 	
+	if 'file' not in req.form:
+		return webcommands.manifest(web, req, tmpl)
+	
 	try:
 		fctx = webutil.filectx(web.repo, req)
 		text = fctx.data()