[Zope3-dev] ZCML alternative

Chris Withers chrisw@nipltd.com
Tue, 04 Jun 2002 23:03:31 +0100


Shane Hathaway wrote:
> 
> Steve Alexander wrote:
> > Namespaces are important for making the configuration system extensible.
> 
> Jeffrey's example was *a lot* easier to read.  Site managers are a lot
> more familiar with that kind of XML than namespace-loaded XML.

Big +1 from me :-)

> We can have extensibility without namespaces.  The extensibility would
> be more limited, but in fact, it currently seems too inviting for
> developers to create their own directives.

More +1...

> <permission id="Zope.Manage">Manage Contacts</permission>
> 
> <content class="Zope.Contact.">
>   <require permission="Zope.View">
>    <attribute>name</attribute>
>    <attribute>first</attribute>
>    <attribute>last</attribute>
>    <attribute>email</attribute>
>    <attribute>address</attribute>
>    <attribute>postal_code</attribute>
>   </require>
>   <require permission="Zope.Manage">
>    <zmi-factory id="Zope.Contact">
>     <title>Contact</title>
>    </zmi-factory>
>   </require>
> </content>

...like it :-)

cheers,

Chris - Zope 3 bystander, 'cos it's too hard right now...