[Zope-CMF] updatePredicate arguments?

marc lindahl marc@bowery.com
Mon, 10 Sep 2001 14:52:12 -0400


Hi,
I'm trying to make an install script, and call updatePredicate from it
(python)

I'm lost, as to the second argument:

    def updatePredicate( self, predicate_id, predicate, typeObjectName ):


predicate_id is the ID you want to access in the content_type_registry
typeObjectName is the portal_type id you want to associate it with

but WTF is the format for predicate?

as far as I can dig, it's dependant on the type - I'm interested in
major/minor... it seems that 'predicate' expects a dictionary, but I can't
decipher what's supposed to be in it - and it's not documented *anywhere*..


help!!!