Phil Harris wrote:
> 
> Shane/All,
> 
> Anybody using the symlink product?
> 
> It seems to me it uses namespaces in the wrong order.  Imagine the hierarchy
> below:
> 
> Root
>     Folder1
>         doc1
>     Folder2
>         symlink1
> 
> Now let's assume that Folder1 has a property 'copyright', and also that
> Folder2 has a property of the same name.
> 
> At the moment the 'copyright' from Folder1 is used in preference to the
> 'copyright' from Folder2 when viewing the symlink.  Does this seem right?
> 
> Anybody got any views, suggestions etc.

This occurs because currently, symlink allows the object to retain its
acquisition context for security.  If you change the line below...

v = ob.__of__(parent)

to this...

v = getattr(ob, 'aq_base', ob).__of__(parent)

...then you'll get the effect you're looking for, but if you allow
others to add or modify symlinks, you just might have a security
problem.

Shane

_______________________________________________
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