[Zope-dev] [Checkins] SVN: zope.dublincore/trunk/ Renamed the ``zope.app.dublincore.*`` permissions to ``zope.dublincore.*`.

Jim Fulton jim at zope.com
Fri Apr 23 18:06:22 EDT 2010


On Fri, Apr 23, 2010 at 4:18 AM, Jacob Holm <jh at improva.dk> wrote:
> Hi Michael, Tres
>
> I agree a new major version is required due to the new "feature" of
> having new permission names, but there is no reason to break
> compatibility with code using the old names.
>
> IIRC the <redefinePermission/> zcml-directive  is there exactly to
> provide backwards compatibility when renaming permissions.  Use like:
>
>  <redefinePermission
>      from = "<no longer defined permisison id>"
>      to = "<existing permission id>"
>      />
>
> It is defined in zope.security:meta.zcml along with the <permission/>
> directive, so should be usable with any code that uses that.

This only affects ZCML.  It caused declarations for the old permission
to be mapped to the new one. It doesn't affect stored permissions.

Jim

-- 
Jim Fulton


More information about the Zope-Dev mailing list