[Zope] finding string1 or string2

p.t. p.training@tin.it
Thu, 27 Jun 2002 21:06:09 +0200


Dieter,
I suppose your suggestion is valid "per se", i.e. not depending on 
manage_findAdv: in this case, is document_src() a method working with all 
documents having a source or only with DTML Document objects?
In other words, can I do something like:

myPythonScript.document_src().find(aString)

and expect it works?
TIA,
         p.t.

At 20:22 27/06/2002 +0200, Dieter Maurer wrote:
>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