Permalink
Browse files

Change handleAsFile for static dir.

  • Loading branch information...
1 parent f169e4b commit f5b511e051628b3dac1ade64ae1668a178b4d372 @jd-boyd committed Aug 21, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 index.py
View
@@ -1,13 +1,11 @@
-__version__ = "$Revision: 1.7 $"
-#$Date: 2008-07-29 02:46:45 $
-#$Author: jdboyd $
-#$Name: not supported by cvs2svn $
-#$Id: index.py,v 1.7 2008-07-29 02:46:45 jdboyd Exp $
-
from mod_python import apache
import mod_python
import os
import inspect
+import logging
+
+log=logging.getLogger(__name__)
+logging.basicConfig(level=logging.DEBUG)
import bm
from dehttp import deHTTP
@@ -22,8 +20,8 @@
}
def handleAsFile(req):
- path,module_name = os.path.split(req.filename)
- toOpen = path + "/" + module_name
+ path, module_name = os.path.split(req.filename)
+ toOpen = path + "/static/" + module_name
parts = module_name.split('.')
if len(parts)==1:

0 comments on commit f5b511e

Please sign in to comment.