Johan Carlsson [Torped] wrote:

> Hi all,
> The collector seems to still be offline?


   http://new.zope.org/Collector



> I just realized that the unrestrictedTraverse returns self
> for the empty-string url: ''
> I did expect it to return the root object because the empty-string
> is equal to the path tuple ('',).


You convert from a path tuple to a path like this:

   path='/'.join(path_tuple)

While you're correct that the path tuple ('',) is equivalent to the path 
'', I thing the path '' means "current object".

So, the root would be represented by the path '/', and therefore the 
tuple ('','').


I guess I should go and read the traversal code again...

--
Steve Alexander
Software Engineer
Cat-Box limited






_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to