[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_requirepermissions.py:1.6

Stephan Richter srichter@cosmos.phy.tufts.edu
Sat, 2 Aug 2003 16:06:03 -0400


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

Modified Files:
	test_requirepermissions.py 
Log Message:
Converted all security-related ZCML directives to the new way of doing 
things.

Note: The Permission id is now required to be an id, which means it must 
be a dotted name or a URI.

I wonder whether we should enforce the same for role and principal ids?!?
Comments?



=== Zope3/src/zope/app/component/tests/test_requirepermissions.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/component/tests/test_requirepermissions.py:1.5	Sat Aug  2 05:11:18 2003
+++ Zope3/src/zope/app/component/tests/test_requirepermissions.py	Sat Aug  2 16:05:26 2003
@@ -35,14 +35,14 @@
     XMLConfig('meta.zcml', zope.app.security)()
     xmlconfig(StringIO("""<zopeConfigure
         xmlns='http://namespaces.zope.org/zope' >
-       <permission id="extravagant" title="extravagant" />
-       <permission id="paltry" title="paltry" />
+       <permission id="zope.extravagant" title="extravagant" />
+       <permission id="zope.paltry" title="paltry" />
     </zopeConfigure>"""))
 
 NOTSET = []
 
-P1 = "extravagant"
-P2 = "paltry"
+P1 = "zope.extravagant"
+P2 = "zope.paltry"
 
 class Test(PlacelessSetup, unittest.TestCase):