Re: [Checkins] SVN: zope.dublincore/trunk/ Renamed the ``zope.app.dublincore.*`` permissions to ``zope.dublincore.*`.
Jacob Holm <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
Best regards
- Jacob
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )