[Zope] Re: urlparse equivalent
jhreis at gmail.com
Tue Dec 18 13:13:23 EST 2007
> David Bear skrev:
> > On Fri, Dec 14, 2007 at 09:16:54PM +0000, peter at fry-it.com wrote:
> > I'm a little suprised that there isn't anything like urlparse
> > functionaly in zope. I would think parsing urls would be a fairly
> > common chore. Which leads me to think that I may be thinking
> > completely wrong about what I want to accomplish.
I wrote a script python to substitute urlparse. You can find it in
To use it (assuming that you name it URL) follow this example:
url = context.URL()
scheme, location, path, parameters, query, fragment = u.urlparse(some_url)
Hope it helps.
More information about the Zope