[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - protectClass.py:1.1.2.9

Jim Fulton jim@zope.com
Tue, 5 Mar 2002 20:57:26 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv1203

Modified Files:
      Tag: Zope-3x-branch
	protectClass.py 
Log Message:
Fixed bug in protectClass.

Protecting by interface didn't cover base-interface methods.


=== Zope3/lib/python/Zope/App/Security/protectClass.py 1.1.2.8 => 1.1.2.9 ===
         "Set a permission on methods in an interface."
         interface = resolve(interface)
-        for n, d in interface.namesAndDescriptions():
+        for n, d in interface.namesAndDescriptions(1):
             if isinstance(d, Method):
                 self.__protectMethod(n, permission_id, r)