[Checkins] SVN: z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt Add a failing test

Wichert Akkerman wichert at wiggy.net
Wed Jun 17 05:24:17 EDT 2009


Log message for revision 101094:
  Add a failing test

Changed:
  U   z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt

-=-
Modified: z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt
===================================================================
--- z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt	2009-06-17 09:18:15 UTC (rev 101093)
+++ z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt	2009-06-17 09:24:16 UTC (rev 101094)
@@ -104,3 +104,22 @@
 directive would've sufficed as well.  What matters is that the
 "unconfiguration" happens *after* the original configuration, and
 override files are a good place to ensure this.
+
+It can also be conveniend to unconfigure an entire zcml file. This can
+be done by using an include statement inside an unconfigure block:
+
+  >>> zcml("""
+  ... <configure>
+  ...   <print msg="The new hello" />
+  ...   <include file="lolcat.zcml" />
+  ...   <include package="z3c.unconfigure" file="meta.zcml" />
+  ...   <unconfigure>
+  ...     <include file="lolcat.zcml" />
+  ...   </unconfigure>
+  ...   <print msg="The final goodbye" />
+  ... </configure>
+  ... """)
+  The new hello
+  The final goodbye
+
+



More information about the Checkins mailing list