[Zope3-dev] ZCML alternative
Shane Hathaway
shane@zope.com
Tue, 04 Jun 2002 20:24:06 -0400
Jim Fulton wrote:
> Shane Hathaway wrote:
>><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>
>
>
> 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.
Wow. I'll work on something else, then. :-)
Shane