I have a folder that I want to move to a new location, but I want old bookmarks to still work. I wanted to stick a RESPONSE.redirect call in the standard_html_error in the old folder (that has no content in it), that redirects to the same object as the one requested with a new path. Does anyone have any idea how I might go about constructing the redirection url from the standard_html_error method? --sam
Sam Gendler wrote:
I have a folder that I want to move to a new location, but I want old bookmarks to still work. I wanted to stick a RESPONSE.redirect call in the standard_html_error in the old folder (that has no content in it), that redirects to the same object as the one requested with a new path. Does anyone have any idea how I might go about constructing the redirection url from the standard_html_error method?
--sam
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I should add that it is easy enough to construct the new url from the PATH_TRANSLATED field of the REQUEST. However, I don't seem to be able to call RESPNOSE.redirect from the standard_error_message. Can someone suggest another way to do this? By the way, overloading standard_error_message doesn't seem to do anything. I have to make changes to the standard_error_message in the root folder in order to make any changes that actually work. Is this normal? --sam
Hello Sam, Sunday, December 19, 1999, 10:24:33 PM, you wrote: SG> I have a folder that I want to move to a new location, but I want old SG> bookmarks to still work. I wanted to stick a RESPONSE.redirect call in SG> the standard_html_error in the old folder (that has no content in it), SG> that redirects to the same object as the one requested with a new path. SG> Does anyone have any idea how I might go about constructing the SG> redirection url from the standard_html_error method? Have a look at the Redirector product: http://www.zope.org/Members/djay/Redirector1_1 -- Best regards, Martijn Pieters mailto:mj@digicool.com
participants (3)
-
Martijn Pieters -
Sam Gendler -
Sam Gendler