Does somebody suggest me what's the way to use manage_findAdv to find DTML Documents containing string1 or string2? TIA, p.t.
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
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
p.t. writes:
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? I do not know whether all object types have a "document_src". I checked (with my "DocFinder" product) that "PythonScripts" do.
"ZopeFind" (which is used by the "Find" tab) uses "PrincipiaSearchSource" instead of "document_src". Probably, this is more widely supported. But I really hate this name (as well as "bobobase_modification_time") and therefore, I told you the more about the method with the better name. Dieter
Dieter, hem, you say ''(with my "DocFinder" product)'': "my" means the one you own, or something produced by you? In the first case, I'm curious about such a product: can you give me some info? TIA, p.t. At 21:35 27/06/2002 +0200, Dieter Maurer wrote:
p.t. writes:
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? I do not know whether all object types have a "document_src". I checked (with my "DocFinder" product) that "PythonScripts" do.
"ZopeFind" (which is used by the "Find" tab) uses "PrincipiaSearchSource" instead of "document_src". Probably, this is more widely supported. But I really hate this name (as well as "bobobase_modification_time") and therefore, I told you the more about the method with the better name.
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
p.t. writes:
hem, you say ''(with my "DocFinder" product)'': "my" means the one you own, or something produced by you? See:
participants (2)
-
Dieter Maurer -
p.t.