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

Hanno Schlichting hanno at hannosch.eu
Wed Jun 17 05:30:24 EDT 2009


Might I suggest that you upgrade to zope.configuration 3.6.0 and use
the new exclude directive instead.

Hanno

On Wed, Jun 17, 2009 at 11:24 AM, Wichert Akkerman<wichert at wiggy.net> wrote:
> 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