[Zope] Property Question
Evan Simpson
evan@digicool.com
Mon, 12 Jun 2000 14:49:38 -0400
----- Original Message -----
From: Tom Scheidt <tom@falsemirror.com>
> result = []
> for item in self.objectValues( [ 'DTML Document' ] ):
> if item.hasProperty( 'publish' ):
> (and if there is something entered in the 'publish' field)
> result.append( item )
> return result
If you just meant, is the value of the 'publish' property is "true"
(nonblank string, nonzero int, etc.) then you want:
result = []
for item in self.objectValues( [ 'DTML Document' ] ):
if item.hasProperty( 'publish' ) and item.publish:
result.append( item )
return result
Cheers,
Evan @ digicool & 4-am