[Checkins] SVN: grokcore.security/trunk/src/grokcore/security/ Give
helper more useful name
Philipp von Weitershausen
philikon at philikon.de
Fri Aug 1 07:51:21 EDT 2008
Log message for revision 89120:
Give helper more useful name
Changed:
U grokcore.security/trunk/src/grokcore/security/testing.py
U grokcore.security/trunk/src/grokcore/security/util.py
-=-
Modified: grokcore.security/trunk/src/grokcore/security/testing.py
===================================================================
--- grokcore.security/trunk/src/grokcore/security/testing.py 2008-08-01 11:47:23 UTC (rev 89119)
+++ grokcore.security/trunk/src/grokcore/security/testing.py 2008-08-01 11:51:21 UTC (rev 89120)
@@ -29,7 +29,7 @@
def execute(self, factory, config, permission, **kw):
config.action(
discriminator=('protectName', factory, 'protected'),
- callable=util.protect_name,
+ callable=util.protect_getattr,
args=(factory, 'protected', permission),
)
return True
Modified: grokcore.security/trunk/src/grokcore/security/util.py
===================================================================
--- grokcore.security/trunk/src/grokcore/security/util.py 2008-08-01 11:47:23 UTC (rev 89119)
+++ grokcore.security/trunk/src/grokcore/security/util.py 2008-08-01 11:51:21 UTC (rev 89120)
@@ -19,7 +19,7 @@
from zope.security.interfaces import IPermission
from zope.app.security.protectclass import protectName
-def protect_name(class_, name, permission=None):
+def protect_getattr(class_, name, permission=None):
# Define an attribute checker using zope.app.security's
# protectName that defaults to the 'zope.Public' permission when
# it's not been given and makes sure the permission has actually
More information about the Checkins
mailing list