RE: [Zope] Underscoring Inaugural Address
Is sort of do, since the final object is a wrapper around a unique path. What about messing aroound with the url? Is there a way to have it show: http://foo.com/__init__.py But really point to http://foo.com/supercoolfileat__init__.py ? -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Paul Winkler Sent: Wednesday, May 11, 2005 3:56 PM To: zope@zope.org Subject: Re: [Zope] Underscoring Inaugural Address On Wed, May 11, 2005 at 03:50:00PM -0400, Dan Pozmanter wrote:
Ugh. I suppose I could ignore the '_' bit (and override BaseRequest.traverse), but the problems are: 1. Keeping this thing synced with Zope. 2. Accessing the object being traversed to to ensure it is of the correct type.
There is no other way to do this?
Do you have to use URL traversal to reach the final object? There's no such restriction on query parameters. http://foo.com/get_file?name=__init__.py -- Paul Winkler http://www.slinkp.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Thu, May 12, 2005 at 10:52:03AM -0400, Dan Pozmanter wrote:
Is sort of do, since the final object is a wrapper around a unique path.
What about messing aroound with the url?
Is there a way to have it show:
But really point to
I don't know of an easy way to do that in zope alone, since the names beginning with underscore are blocked at a pretty low level (in ZPublisher). But, if you have e.g. apache in front, that could be easily done with a rewrite rule. -- Paul Winkler http://www.slinkp.com
Dan Pozmanter wrote:
Is sort of do, since the final object is a wrapper around a unique path.
What about messing aroound with the url?
Is there a way to have it show:
Maybe I missed something, but why are you intent on serving such bizare urls? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Dan Pozmanter -
Paul Winkler