[Checkins] SVN: zope.location/trunk/ Added zcml and test extras as well as a test for configure.zcml.
Thomas Lotze
tl at gocept.com
Sun Sep 19 04:13:40 EDT 2010
Log message for revision 116612:
Added zcml and test extras as well as a test for configure.zcml.
Changed:
U zope.location/trunk/CHANGES.txt
U zope.location/trunk/buildout.cfg
U zope.location/trunk/setup.py
A zope.location/trunk/src/zope/location/configure.txt
U zope.location/trunk/src/zope/location/configure.zcml
U zope.location/trunk/src/zope/location/tests.py
-=-
Modified: zope.location/trunk/CHANGES.txt
===================================================================
--- zope.location/trunk/CHANGES.txt 2010-09-19 08:12:12 UTC (rev 116611)
+++ zope.location/trunk/CHANGES.txt 2010-09-19 08:13:40 UTC (rev 116612)
@@ -5,7 +5,9 @@
3.9.1 (unreleased)
------------------
+- Added zcml and test extras as well as a test for configure.zcml.
+
3.9.0 (2009-12-29)
------------------
Modified: zope.location/trunk/buildout.cfg
===================================================================
--- zope.location/trunk/buildout.cfg 2010-09-19 08:12:12 UTC (rev 116611)
+++ zope.location/trunk/buildout.cfg 2010-09-19 08:13:40 UTC (rev 116612)
@@ -4,7 +4,7 @@
[test]
recipe = zc.recipe.testrunner
-eggs = zope.location
+eggs = zope.location [test]
[coverage-test]
recipe = zc.recipe.testrunner
Modified: zope.location/trunk/setup.py
===================================================================
--- zope.location/trunk/setup.py 2010-09-19 08:12:12 UTC (rev 116611)
+++ zope.location/trunk/setup.py 2010-09-19 08:13:40 UTC (rev 116612)
@@ -62,6 +62,10 @@
'zope.component>=3.8.0',
'zope.proxy>3.3',
],
+ extras_require={
+ 'zcml': ['zope.configuration'],
+ 'test': ['zope.location [zcml]'],
+ },
include_package_data = True,
zip_safe = False,
)
Added: zope.location/trunk/src/zope/location/configure.txt
===================================================================
--- zope.location/trunk/src/zope/location/configure.txt (rev 0)
+++ zope.location/trunk/src/zope/location/configure.txt 2010-09-19 08:13:40 UTC (rev 116612)
@@ -0,0 +1,14 @@
+Package configuration
+=====================
+
+The ``zope.location`` package provides a ZCML file that configures some
+location-related adapters. As we don't have ``zope.copy`` available in our
+test environment, three adapters get registered:
+
+ >>> from zope.configuration.xmlconfig import XMLConfig
+ >>> import zope.location
+
+ >>> XMLConfig('configure.zcml', zope.location)()
+
+ >>> len(list(zope.component.getGlobalSiteManager().registeredAdapters()))
+ 3
Property changes on: zope.location/trunk/src/zope/location/configure.txt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Date
Added: svn:eol-style
+ native
Modified: zope.location/trunk/src/zope/location/configure.zcml
===================================================================
--- zope.location/trunk/src/zope/location/configure.zcml 2010-09-19 08:12:12 UTC (rev 116611)
+++ zope.location/trunk/src/zope/location/configure.zcml 2010-09-19 08:13:40 UTC (rev 116612)
@@ -1,6 +1,8 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml">
+ <include file="meta.zcml" package="zope.component" />
+
<adapter factory=".location.LocationProxy" />
<adapter zcml:condition="installed zope.copy"
factory=".pickling.LocationCopyHook" />
Modified: zope.location/trunk/src/zope/location/tests.py
===================================================================
--- zope.location/trunk/src/zope/location/tests.py 2010-09-19 08:12:12 UTC (rev 116611)
+++ zope.location/trunk/src/zope/location/tests.py 2010-09-19 08:13:40 UTC (rev 116612)
@@ -21,5 +21,6 @@
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite('location.txt'),
+ doctest.DocFileSuite('configure.txt'),
doctest.DocTestSuite('zope.location.traversing'),
))
More information about the checkins
mailing list