[Checkins] SVN: grokcore.security/trunk/ Removed dependency of grokcore.security on zope.app.security.
Brandon Rhodes
brandon at rhodesmill.org
Thu Jan 29 08:37:56 EST 2009
Log message for revision 95432:
Removed dependency of grokcore.security on zope.app.security.
Changed:
_U grokcore.security/trunk/
U grokcore.security/trunk/CHANGES.txt
U grokcore.security/trunk/buildout.cfg
U grokcore.security/trunk/setup.py
U grokcore.security/trunk/src/grokcore/security/util.py
U grokcore.security/trunk/versions.cfg
-=-
Property changes on: grokcore.security/trunk
___________________________________________________________________
Modified: svn:externals
- bootstrap svn://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/
+ bootstrap svn://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/
zope.security svn://svn.zope.org/repos/main/zope.security/trunk/
Modified: grokcore.security/trunk/CHANGES.txt
===================================================================
--- grokcore.security/trunk/CHANGES.txt 2009-01-29 13:37:36 UTC (rev 95431)
+++ grokcore.security/trunk/CHANGES.txt 2009-01-29 13:37:56 UTC (rev 95432)
@@ -6,6 +6,9 @@
* Improved documentation.
+* Removed dependency on `zope.app.security` thanks to the `protectclass`
+ utility module having been moved to `zope.security`.
+
1.0 (2008-08-03)
----------------
Modified: grokcore.security/trunk/buildout.cfg
===================================================================
--- grokcore.security/trunk/buildout.cfg 2009-01-29 13:37:36 UTC (rev 95431)
+++ grokcore.security/trunk/buildout.cfg 2009-01-29 13:37:56 UTC (rev 95432)
@@ -1,5 +1,5 @@
[buildout]
-develop = .
+develop = . zope.security
parts = interpreter test
extends = versions.cfg
versions = versions
Modified: grokcore.security/trunk/setup.py
===================================================================
--- grokcore.security/trunk/setup.py 2009-01-29 13:37:36 UTC (rev 95431)
+++ grokcore.security/trunk/setup.py 2009-01-29 13:37:56 UTC (rev 95432)
@@ -37,7 +37,6 @@
'zope.interface',
'zope.component',
'zope.security',
- 'zope.app.security',
'zope.configuration',
'zope.testing',
],
Modified: grokcore.security/trunk/src/grokcore/security/util.py
===================================================================
--- grokcore.security/trunk/src/grokcore/security/util.py 2009-01-29 13:37:36 UTC (rev 95431)
+++ grokcore.security/trunk/src/grokcore/security/util.py 2009-01-29 13:37:56 UTC (rev 95432)
@@ -16,20 +16,21 @@
from martian.error import GrokError
from zope.component import queryUtility
from zope.security.interfaces import IPermission
-from zope.app.security.protectclass import protectName
-from zope.app.security.protectclass import protectSetAttribute
+from zope.security.protectclass import protectName
+from zope.security.protectclass import protectSetAttribute
def protect_getattr(class_, name, permission=None):
- """Define a checker for reading an attribute (``name``) using a
- permission. If not supplied, the permission defaults to public
- access."""
+ """Install a getattr permission check for the attribute ``name``.
+
+ If ``permission`` is not supplied, access will be public.
+ """
permission = check_or_default_permission(class_, permission)
protectName(class_, name, permission)
def protect_setattr(class_, name, permission=None):
- """Define a checker for setting an attribute (``name``) using a
- permission. If not supplied, the permission defaults to public
- access.
+ """Install a setattr permission check for the attribute ``name``.
+
+ If ``permission`` is not supplied, access will be public.
"""
permission = check_or_default_permission(class_, permission)
protectSetAttribute(class_, name, permission)
Modified: grokcore.security/trunk/versions.cfg
===================================================================
--- grokcore.security/trunk/versions.cfg 2009-01-29 13:37:36 UTC (rev 95431)
+++ grokcore.security/trunk/versions.cfg 2009-01-29 13:37:56 UTC (rev 95432)
@@ -92,7 +92,7 @@
zope.proxy = 3.4.2
zope.publisher = 3.4.6
zope.schema = 3.4
-zope.security = 3.4.1
+#zope.security = 3.4.1
zope.securitypolicy = 3.4.1
zope.server = 3.4.3
zope.session = 3.4.1
More information about the Checkins
mailing list