Log message for revision 105406: Merged c105405 from 2.12 branch Changed: U Zope/trunk/src/App/class_init.py
-=- Modified: Zope/trunk/src/App/class_init.py =================================================================== --- Zope/trunk/src/App/class_init.py 2009-10-31 11:03:24 UTC (rev 105405) +++ Zope/trunk/src/App/class_init.py 2009-10-31 11:04:38 UTC (rev 105406) @@ -77,7 +77,10 @@ pr = PermissionRole(pname) for mname in mnames: setattr(self, mname+'__roles__', pr) - if mname and not hasattr(self, mname): + if (mname and mname not in ('context', 'request') and + not hasattr(self, mname)): + # don't complain about context or request, as they are + # frequently not available as class attributes logging.getLogger("Init").warning( "Class %s.%s has a security declaration for " "nonexistent method %r", self.__module__, _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins