[Zope] finding string1 or string2

Dieter Maurer dieter@handshake.de
Thu, 27 Jun 2002 20:22:38 +0200


p.t. writes:
 > Does somebody suggest me what's the way to use manage_findAdv to find DTML 
 > Documents containing string1 or string2?
You may try the expression:

    document_src().find('string1') >= 0 or document_src().find('string2') >= 0


This requires Python 2.1.x.


Dieter