[Zope-CMF] CTR Predicate based on path

Vincenzo Di Somma vincenzo at reflab.it
Fri Nov 19 10:18:31 EST 2004


Thanks for the quick answer!


On Fri, 2004-11-19 at 13:03 -0200, Sidnei da Silva wrote:
> On Fri, Nov 19, 2004 at 04:00:50PM +0100, Vincenzo Di Somma wrote:
> | Hi all,
> | if I understand correctly, a CTR predicate can evaluate only parameters
> | releated to the uploaded file and not to the context.
> | Is that correct?
> | 
> | In the code the parameters passed to a predicate are: name, typ and
> | body.
> | What should I do to make my predicate evaluate something on the
> | container object, for example?
> 
> If you want policies based on path, you can just stick a new
> content_type_registry on the folder where you want different behavior.

That's what I'm doing right now but I will end up with tens of CTR
around the portal.
I'm just wondering if there is a better solution.
Thanks,

	vds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20041119/0a3555cd/attachment.bin


More information about the Zope-CMF mailing list