[Checkins] SVN: zope.app.container/trunk/src/zope/app/container/browser/tests/test_view_permissions.py Deny the new zope.dublincore permission as well as the old one.

Tres Seaver tseaver at palladion.com
Sun May 2 11:50:48 EDT 2010


Log message for revision 111867:
  Deny the new zope.dublincore permission as well as the old one.

Changed:
  U   zope.app.container/trunk/src/zope/app/container/browser/tests/test_view_permissions.py

-=-
Modified: zope.app.container/trunk/src/zope/app/container/browser/tests/test_view_permissions.py
===================================================================
--- zope.app.container/trunk/src/zope/app/container/browser/tests/test_view_permissions.py	2010-05-02 15:46:31 UTC (rev 111866)
+++ zope.app.container/trunk/src/zope/app/container/browser/tests/test_view_permissions.py	2010-05-02 15:50:47 UTC (rev 111867)
@@ -79,6 +79,8 @@
 
         # deny zope.app.dublincore.view to zope.Anonymous
         prm = IRolePermissionManager(self.getRootFolder())
+        prm.denyPermissionToRole('zope.dublincore.view', 'zope.Anonymous')
+        # Try both spellings just in case we are used with an older zope.dc
         prm.denyPermissionToRole('zope.app.dublincore.view', 'zope.Anonymous')
         transaction.commit()
 



More information about the checkins mailing list