Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change handleAsFile for static dir.

  • Loading branch information...
commit f5b511e051628b3dac1ade64ae1668a178b4d372 1 parent f169e4b
@jd-boyd authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 index.py
View
14 index.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.