Re: [Zope] Re: urlparse equivalent
18 Dec
2007
18 Dec
'07
6:13 p.m.
David Bear skrev:
On Fri, Dec 14, 2007 at 09:16:54PM +0000, peter@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 http://paste.plone.org/18656. 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. Zénrique.
6683
Age (days ago)
6683
Last active (days ago)
0 comments
1 participants
participants (1)
-
José Henrique