Anonymous committed cda341c

Implemented ticket #37
Use cpg.request.paramList

Comments (0)

Files changed (1)

     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
     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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.