Op 22-02-11 22:29, Martin Aspeli schreef:
On 22 February 2011 15:57, Maurits van Rees<[email protected]>  wrote:
Op 21-02-11 11:55, Yuri schreef:

Hi all!

which is the main difference betweeen zope.View and zope2.View? Which
should we use, for example, in a browser:view/page? Thank you very much.

The main difference is that zope.View does not exist. :-)  At least I could
not find it.  Grepping through (part of) the plone source code I only found
zcml that used zope2.View.  So in Plone code (at least 2.5, 3, 4) you
definitely need zope2.View.

I think KSS defined it at one point, and it's something that Zope 3
apps used to set up.

Martin

Ah, indeed.  kss.core 1.4.1 defines it conditionally:

$ cat kss/core/permission.zcml
<configure
    xmlns:zcml="http://namespaces.zope.org/zcml";
    xmlns="http://namespaces.zope.org/zope";>

     <permission
        id="zope.View"
        title="View"
        zcml:condition="installed kss.demo"
    />
</configure>

kss.core 1.2.4 did not have it yet; I did not check the 1.3 line.

It's safe to say you should use zope2.View instead.

--
Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to