[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/component/zcml.txt
Only need to use elementary security directives (<permission
/> to be exact),
Philipp von Weitershausen
philikon at philikon.de
Wed Apr 12 19:45:28 EDT 2006
Log message for revision 66925:
Only need to use elementary security directives (<permission /> to be exact),
so now we can use meta.zcml from zope.security.
Changed:
U Zope3/branches/jim-adapter/src/zope/component/zcml.txt
-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/zcml.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/zcml.txt 2006-04-12 23:44:34 UTC (rev 66924)
+++ Zope3/branches/jim-adapter/src/zope/component/zcml.txt 2006-04-12 23:45:28 UTC (rev 66925)
@@ -295,9 +295,9 @@
>>> IApp(Content(), None) is None
True
- >>> import zope.app.security
+ >>> import zope.security
>>> from zope.configuration.xmlconfig import XMLConfig
- >>> XMLConfig('meta.zcml', zope.app.security)()
+ >>> XMLConfig('meta.zcml', zope.security)()
>>> runSnippet('''
... <permission
... id="y.x"
@@ -446,7 +446,7 @@
We can also protect the trusted adapter with a permission:
>>> clearZCML()
- >>> XMLConfig('meta.zcml', zope.app.security)()
+ >>> XMLConfig('meta.zcml', zope.security)()
>>> runSnippet('''
... <permission
... id="y.x"
@@ -659,7 +659,7 @@
directive:
>>> clearZCML()
- >>> XMLConfig('meta.zcml', zope.app.security)()
+ >>> XMLConfig('meta.zcml', zope.security)()
>>> runSnippet('''
... <permission
... id="y.x"
More information about the Zope3-Checkins
mailing list