Ma perché tutti continuano con questa formula così complessa? Come
avevi detto tu (<include package="Products.CMFCore" />) basta e
avanza.

Perché con Plone 3 continua a funzionare?

Se si evita di esplicitare anche il pezzo `file="permissions.zcml"`
dovrebbe funzionare tranquillamente anche su Plone 3, 4, 4.1, ...
Questo a quanto ho sperimentato!


Allora qualcuno aggiorni questo:

http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages

(c'è che un carattere sbagliato)


   Updating Permissions

If you are protecting any templates, pages, etc... in zcml with CMF core permissions (anything in the cmf namespace, e.g. cmf.ModifyPortalContent), you must add the following to configure.zcml:

<include package="Products.CMFCore" />

Most importantly this loads the permissions.zcml, if it is available. The above statement is the easiest and will work in all Plone versions; previously a more fancy statement with a condition was advocated, which we will give here for good measure:

<include package="Products.CMFCore" file="permissions.zcml"
           xmlns:zcml="http://namespaces.zope.org/zcml";
           zcml:condition="haveplone-41" />


_______________________________________________
Plone-IT mailing list
plone...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html

Rispondere a