Commits

Matthew Scott  committed 4d6ea8e

- Import Pygments extensions; use PATH_INFO instead of QUERY_INFO

  • Participants
  • Parent commits efb53a0

Comments (0)

Files changed (1)

File slipper/app.py

 from mercurial.util import datestr
 
 from slipper.config import repo_map_from_config
+import slipper.directives
 
 
 class Application(object):
 
     def __call__(self, environ, start_response):
         # Determine the section to use and the file to render.
-        parts = environ['QUERY_STRING'].split('/', 2)
+        PATH_INFO = environ['PATH_INFO'][1:]
+        parts = PATH_INFO.split('/', 2)
         if len(parts) != 3:
             # Unsupported query string; act as if a resource was requested
             # that was not found.