12 Jun
2000
12 Jun
'00
6:49 p.m.
----- 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