On Fri, May 30, 2008 at 2:35 PM, Martijn Faassen <[EMAIL PROTECTED]> wrote:
> I guess one difference here is that it seems more common in the RDB scenario
> to have multiple ways to reach the same object, and even if you just publish
> one, you can get to the actual object in multiple ways.
> In this case it'd be nice to convince IAbsoluteURL to somehow know which URL
> option is the best, or alternatively, give the object somehow its
> 'canonical' location (parent, etc) even if you don't get it that way.

I have an app that allows the same object to be reachable via several
URLs.  When we wanted one of the URLs to be preferred (none are really
"cononical" in my case), then we did just as you suggest above and added
a way for the IAbsoluteURL adapter(s) to know which URL was preferred.
It worked out quite well.
Benji York
Senior Software Engineer
Zope Corporation
Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to