[Zope3-dev] RFC: zcml:condition

Marius Gedminas mgedmin at b4net.lt
Sun Feb 20 12:05:06 EST 2005


On Thu, Feb 17, 2005 at 04:42:13PM -0500, Jim Fulton wrote:
> I'd like to propose a much simpler language for condition
> values:
> 
>   verb arguments
> 
> The arguments depend on the verb.
> 
> Initially, we'd implement a single verb, "have", that
> takes a feature name.
> 
> We'd also provide a meta configuration directive:
> 
>   <meta:provide feature="featurename" />
> 
> (as in <meta:provide feature="onlinehelp" />)
> 
> A condition with a "have" command will be true if there was
> a previous provides directive for the named feature.
> 
> Marius volunteered to write this this weekend, so I'd
> like to reach consensus quickly. :)

It is now implemented exactly as specified above.

  http://svn.zope.org/?rev=29227&view=rev

Here is a usage example for apidoc:

  http://svn.zope.org/?rev=29228&view=rev

Marius Gedminas
-- 
When in trouble or in doubt,
run in circles, scream and shout.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20050220/012e09d0/attachment.bin


More information about the Zope3-dev mailing list