> David Bear skrev: > > On Fri, Dec 14, 2007 at 09:16:54PM +0000, [EMAIL PROTECTED] 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. _______________________________________________ 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 )