[Zope-CMF] updatePredicate arguments?

Dieter Maurer dieter@handshake.de
Tue, 11 Sep 2001 23:15:56 +0200 (CEST)


marc lindahl writes:
 > To use it with updatePredicate, first you need to import it:
 > 
 > from ZPublisher.HTTPRequest import record
 > 
 > Then instantiate it and fill it with the appropriate values.  That varies
 > given the type of predicate.  This example is for the major/minor type:
 > 
 >     predicate = record()
 >     predicate.id = 'audio'
 >     predicate.major = 'audio'
 >     predicate.minor = ''
 >     registry.updatePredicate('audio', predicate, 'Audio')
 > 
 > ....obviously, from an install script for CMFAudio...
Probably, you can use any object (not just "record" instances)
with the required attributes.


Dieter