[Zope-dev] IAbsoluteURL for browser view should contain @@?

Marius Gedminas marius at gedmin.as
Thu Apr 1 05:46:53 EDT 2010


On Thu, Apr 01, 2010 at 10:25:09AM +0200, Christian Zagrodnick wrote:
> the explicit way to address a view is using the /@@viewname namespace 
> traversal.
> 
> An IAbsoluteURL for a browser view returns an URL without the @@ (i.e. 
> /foo/bar/view instead of /foo/bar/@@view). I think this should be 
> changed so that the URL contains the @@.
> 
> If you agree with this, where should I place this adapter?
> 
> The two relevant interfaces are
> zope.browser.interfaces.IBrowserView

Are you sure that most views provide IBrowserView these days?  URL
traversal looks them up as multi-adapters providing just Interface.

> zope.traversing.browser.interfaces.IAbsoluteURL
> 
> But neither package depends on the other, so a different package might 
> be more suiteable?

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20100401/c0095151/attachment.bin 


More information about the Zope-Dev mailing list