Ticket #490 (defect)
Opened 2 years ago
Last modified 2 years ago
InternalRedirect should auto-detect params in the URL
Status: closed (fixed)
| Reported by: | vinjvinj@yahoo.com | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
I have function like this:
def change_view(forwardToUrl): change some variable cherrypy.InternalRedirect(forwardToUrl)
Looking at the cherrypy I have to split my url into two parts seperated by ?. Why does the cherrypy.InternalRedirect? not accept full urls with the variables as part of the url in addition to other api?
This is what I'm doing currently:
urlParts = urllib.unquote(forwardToUrl).split("?") raise cherrypy.InternalRedirect(urlParts[0], urlParts[1])
Thanks,
VJ
Change History
05/10/06 02:50:48: Modified by fumanchu
- owner changed from rdelon to fumanchu.
- status changed from new to assigned.
- summary changed from Add you function HTTPRedirectInternal(url) to InternalRedirect should auto-detect params in the URL.
- milestone set to 3.0.
06/09/06 03:01:20: Modified by fumanchu
- status changed from assigned to closed.
- resolution set to fixed.
12/09/06 17:01:53: Modified by fumanchu
- description changed.
Formatted the description.


Fixed in [1130]. Removed the "params" arg from InternalRedirect?; set cherrypy.request.params directly (before raising InternalRedirect?) instead.