Is there a way, without using urllib and it's brethren to redirect a user to another url without changing the URL line in their browser? (I know it sounds malicious, but the URL is ugly). Ideally I'd like to do "return url" in a python script, but I know that's not going to happen ;) -jim
On Wed, Aug 28, 2002 at 04:28:32PM -0400, Jim Kutter wrote:
Is there a way, without using urllib and it's brethren to redirect a user to another url without changing the URL line in their browser? (I know it sounds malicious, but the URL is ugly). Ideally I'd like to do "return url" in a python script, but I know that's not going to happen ;)
Sure it is! Something like: zobject = context.restrictedTraverse(url) return zobject() Won't work if the URL is offsite, of course. -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
Perhaps you should consider "de-uglifying" your URL by storing data in a session object instead of the URL string... Eron On Wed, 2002-08-28 at 16:28, Jim Kutter wrote:
Is there a way, without using urllib and it's brethren to redirect a user to another url without changing the URL line in their browser? (I know it sounds malicious, but the URL is ugly). Ideally I'd like to do "return url" in a python script, but I know that's not going to happen ;)
-jim
_______________________________________________ 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 ) --- [This E-mail scanned for viruses by Declude Virus]
-- Eron Lloyd Technology Coordinator Lancaster County Library elloyd@lancaster.lib.pa.us Phone: 717-239-2116 Fax: 717-394-3083 --- [This E-mail scanned for viruses by Declude Virus]
participants (4)
-
Chris Withers -
Eron Lloyd -
Jim Kutter -
Paul Winkler