[Zope-dev] [Checkins] SVN: zope.dublincore/trunk/ Renamed the ``zope.app.dublincore.*`` permissions to ``zope.dublincore.*`.
Tres Seaver
tseaver at palladion.com
Fri Apr 23 18:14:23 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Fulton wrote:
> 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.
Maybe the short-term fix would be to add a shim package (reviving
'zope.app.dublincore', maybe) whose only job in life is to make those
permissions loadable. Maybe the package ships with some code to help
write the evolve script, or something.
In the meanwhile, folks with persistent permissions should pin the
version of zope.dublincore == 3.6.0.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkvSG78ACgkQ+gerLs4ltQ4vsACfZA75jbybxkv+RZO4qW7R/6nO
djoAoK1aFiODO5/zr2pl1DIIITgYHkrj
=dEXv
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list