[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration/tests/Contact - TestIncludeHandler.py:1.1 test_include.zcml:1.1 contact.zcml:1.3

Steve Alexander steve@cat-box.net
Tue, 18 Jun 2002 09:07:31 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests/Contact
In directory cvs.zope.org:/tmp/cvs-serv10827/lib/python/Zope/Configuration/tests/Contact

Modified Files:
	contact.zcml 
Added Files:
	TestIncludeHandler.py test_include.zcml 
Log Message:
fixed the include directive to use the package of the zcml file it was
included from.
This doesn't apply to "root" zcml files (such as site.zcml), where no
package has been defined.


=== Added File Zope3/lib/python/Zope/Configuration/tests/Contact/TestIncludeHandler.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""

Revision information:
$Id: TestIncludeHandler.py,v 1.1 2002/06/18 13:07:30 stevea Exp $
"""

class TestIncludeHandler:
    """Test include handler. We only care whether we can find this.
    """


=== Added File Zope3/lib/python/Zope/Configuration/tests/Contact/test_include.zcml ===
<zopeConfigure xmlns='http://namespaces.zope.org/zope'>

<directive name="test_include" namespace="test"
           handler=".TestIncludeHandler." />

</zopeConfigure>


=== Zope3/lib/python/Zope/Configuration/tests/Contact/contact.zcml 1.2 => 1.3 ===
 <directive name="test" namespace="test"
            handler=".TestHandler." />
+           
+<!-- test if the included zcml file keeps the package of this file -->
+<include file="test_include.zcml" />
 
 </zopeConfigure>