[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_browserpublication.py:1.22

Chris McDonough chrism at plope.com
Wed Jan 14 17:55:53 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/publication/tests
In directory cvs.zope.org:/tmp/cvs-serv5558/src/zope/app/publication/tests

Modified Files:
	test_browserpublication.py 
Log Message:
Merge security policy refactoring:

 - Moved all role- and grant-related functionality into
   zope.products.securitypolicy (and out of zope.app.security.grant).
   The zope.products.securitypolicy implementation is exactly
   the same as the old implementation; no changes were made
   to the actual mechanics of role-permission or principal-permission
   grants.  The only real difference is that all functionality
   that is the purview of what we want a security policy to have
   control of is now in that one place.

 - Created new modulealias directive which can be used to provide
   aliases to older modules (to not break existing ZODBs when
   module locations change).

 - Added minor feature: "make debug" launches a debug session in the
   spirit of Zope 2's "zopectl debug".
   


=== Zope3/src/zope/app/publication/tests/test_browserpublication.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.21	Fri Nov 21 12:12:10 2003
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py	Wed Jan 14 17:55:23 2004
@@ -34,7 +34,6 @@
 from zope.security.checker import defineChecker, NamesChecker
 
 from zope.app.security.registries.principalregistry import principalRegistry
-from zope.app.security.grants.principalrole import principalRoleManager
 
 from zope.app.publication.browser import BrowserPublication
 from zope.app.publication.traversers import TestTraverser
@@ -44,7 +43,7 @@
 from persistence import Persistent
 
 def foo():
-    " "
+    "I am an otherwise empty docstring."
     return '<html><body>hello base fans</body></html>'
 
 class DummyPublished:
@@ -130,10 +129,6 @@
         ## the following is for running the tests standalone
         principalRegistry.defineDefaultPrincipal(
             'tim', 'timbot', 'ai at its best')
-
-        principalRoleManager.assignRoleToPrincipal('Manager', 'tim',
-                                                   check=False)
-
 
         # now place our object inside the application
         from transaction import get_transaction




More information about the Zope3-Checkins mailing list