Commits

Anonymous committed cda341c

Implemented ticket #37
Use cpg.request.paramList

  • Participants
  • Parent commits 18bbd17
  • Branches cherrypy

Comments (0)

Files changed (1)

File _cphttptools.py

     cpg.request.queryString = ""
     cpg.request.browserUrl = cpg.request.path
     cpg.request.paramMap = {}
+    cpg.request.paramList = [] # Only used for Xml-Rpc
     cpg.request.filenameMap = {}
     cpg.request.fileTypeMap = {}
-    cpg.request.paramTuple = ()
     i = cpg.request.path.find('?')
     if i != -1:
         # Parse parameters from URL
     # Save original values (in case they get modified by filters)
     cpg.request.originalPath = cpg.request.path
     cpg.request.originalParamMap = cpg.request.paramMap
-    cpg.request.originalParamTuple = cpg.request.paramTuple
+    cpg.request.originalParamList = cpg.request.paramList
 
     path = cpg.request.path
     if path.startswith('/'): path = path[1:] # Remove leading slash
         return
          
     cpg.request.objectPath = '/'.join(objectPathList)
-    cpg.response.body = func(*virtualPathList, **(cpg.request.paramMap))
+    cpg.response.body = func(*(virtualPathList + cpg.request.paramList), **(cpg.request.paramMap))
 
     if cpg.response.sendResponse:
         sendResponse(wfile)