Re: [Zope] Re: urlparse equivalent
David Bear skrev: On Fri, Dec 14, 2007 at 09:16:54PM +, [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 )
[Zope] Re: urlparse equivalent
David Bear skrev: On Fri, Dec 14, 2007 at 09:16:54PM +, [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. You practically newer use urlparse like functionality when scripting and skinning zope. You sometimes do when developing special products, but then you got the entire python library to use. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science ___ 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 )
[Zope] Re: urlparse equivalent
David Bear wrote: what is the easiest way to get the path to where a script lives? script.absolute_url() or script.absolute_url_path() ___ 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 )