[Zope3-dev] ZCML alternative
Chris Withers
chrisw@nipltd.com
Wed, 05 Jun 2002 01:51:29 +0100
Jim Fulton wrote:
>
> > <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>
>
> You find that more readable than:
>
> <security:permission
> id="Zope.Manage"
> title="Manage Contacts"/>
>
> <content class="Zope.Contact.">
> <security:require
> permission="Zope.View"
> attributes="name first last email address postal_code" />
> <zmi:factory
> id="Zope.Contact"
> permission="Zope.Manage"
> title="Contact" />
> </content>
>
> I find this unfathomable.
Sorry, I gotta agree with Shane on this one...
cheers,
Chris