[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.33
Steve Alexander
steve@cat-box.net
Sat, 7 Jun 2003 14:58:14 -0400
Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv12772/src/zope/security
Modified Files:
checker.py
Log Message:
Tidied up long lines.
=== Zope3/src/zope/security/checker.py 1.32 => 1.33 ===
--- Zope3/src/zope/security/checker.py:1.32 Thu Jun 5 07:56:25 2003
+++ Zope3/src/zope/security/checker.py Sat Jun 7 14:58:13 2003
@@ -369,14 +369,18 @@
super(CheckerLoggingMixin, self).check(object, name)
if self.verbosity > 1:
if name in _always_available:
- print >> sys.stderr, '[CHK] + Always available: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] + Always available: %s on %r' % (name, object))
else:
- print >> sys.stderr, '[CHK] + Granted: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] + Granted: %s on %r' % (name, object))
except Unauthorized:
- print >> sys.stderr, '[CHK] - Unauthorized: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Unauthorized: %s on %r' % (name, object))
raise
except ForbiddenAttribute:
- print >> sys.stderr, '[CHK] - Forbidden: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Forbidden: %s on %r' % (name, object))
raise
def check_getattr(self, object, name):
@@ -384,26 +388,35 @@
super(CheckerLoggingMixin, self).check(object, name)
if self.verbosity > 1:
if name in _always_available:
- print >> sys.stderr, '[CHK] + Always available getattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] + Always available getattr: %s on %r'
+ % (name, object))
else:
- print >> sys.stderr, '[CHK] + Granted getattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] + Granted getattr: %s on %r'
+ % (name, object))
except Unauthorized:
- print >> sys.stderr, '[CHK] - Unauthorized getattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Unauthorized getattr: %s on %r' % (name, object))
raise
except ForbiddenAttribute:
- print >> sys.stderr, '[CHK] - Forbidden getattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Forbidden getattr: %s on %r' % (name, object))
raise
def check_setattr(self, object, name):
try:
super(CheckerLoggingMixin, self).check_setattr(object, name)
if self.verbosity > 1:
- print >> sys.stderr, '[CHK] + Granted setattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] + Granted setattr: %s on %r' % (name, object))
except Unauthorized:
- print >> sys.stderr, '[CHK] - Unauthorized setattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Unauthorized setattr: %s on %r' % (name, object))
raise
except ForbiddenAttribute:
- print >> sys.stderr, '[CHK] - Forbidden setattr: %s on %r' % (name, object)
+ print >> sys.stderr, (
+ '[CHK] - Forbidden setattr: %s on %r' % (name, object))
raise