[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - Checker.py:1.1.4.5.4.2

Jim Fulton jim@zope.com
Thu, 30 May 2002 14:27:01 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	Checker.py 
Log Message:
Implemented browser:page directives for browser:view, browser:resource. 

Implemented security assertions in view and resource directives.

Changed defaultView so you can omit a factory, which just sets the
default view name without defining a view.

Moved Browser and ComponentArchitecture directive support to App,
because of all of the dependencies on other packages.



=== Zope3/lib/python/Zope/Security/Checker.py 1.1.4.5.4.1 => 1.1.4.5.4.2 ===
 
 def InterfaceChecker(interface, permission_id=CheckerPublic):
-    return NamesChecker(interface.names(), permission_id)
+    return NamesChecker(interface.names(1), permission_id)
 
 def MultiChecker(specs):
     """Create a checker from a sequence of specifications