[Checkins] SVN: zope.component/branches/conditional-zope.security/ added test for check_security_support
Fabio Tranchitella
kobold at kobold.it
Wed Nov 4 13:40:42 EST 2009
Log message for revision 105483:
added test for check_security_support
Changed:
U zope.component/branches/conditional-zope.security/CHANGES.txt
U zope.component/branches/conditional-zope.security/src/zope/component/zcml_conditional.txt
-=-
Modified: zope.component/branches/conditional-zope.security/CHANGES.txt
===================================================================
--- zope.component/branches/conditional-zope.security/CHANGES.txt 2009-11-04 18:00:29 UTC (rev 105482)
+++ zope.component/branches/conditional-zope.security/CHANGES.txt 2009-11-04 18:40:41 UTC (rev 105483)
@@ -10,7 +10,7 @@
zope.proxy are available.
- Moved the IPossibleSite and ISite interfaces here from zope.location as they
- are dealing with zope.component's concept of a site, but not with location.
+ are dealing with zope.component's concept of a site, but not with location.
- Moved the zope.site.hooks functionality to zope.component.hooks as it isn't
actually dealing with zope.site's concept of a site.
Modified: zope.component/branches/conditional-zope.security/src/zope/component/zcml_conditional.txt
===================================================================
--- zope.component/branches/conditional-zope.security/src/zope/component/zcml_conditional.txt 2009-11-04 18:00:29 UTC (rev 105482)
+++ zope.component/branches/conditional-zope.security/src/zope/component/zcml_conditional.txt 2009-11-04 18:40:41 UTC (rev 105483)
@@ -1,6 +1,14 @@
ZCML directives without zope.security support
=============================================
+This tests run without zope.security available:
+
+ >>> from zope.component.zcml import check_security_support
+ >>> check_security_support()
+ Traceback (most recent call last):
+ ...
+ ConfigurationError: security proxied components are not supported because zope.security is not available
+
Components may be registered using the registration API exposed by
``zope.component`` (provideAdapter, provideUtility, etc.). They may
also be registered using configuration files. The common way to do
More information about the checkins
mailing list