Re: [Zope] catalog DTML Document
Wolfgang Strobl wrote: There is a How-To "Adding ZClass Instances Programmatically", and a lot of gobbledigoop about when, how and why. But I haven't found anything about how to "index" or "reindex" a plain and simple DTML Document. In Python: your_catalog.catalog_object(your_dtml_document,your_dtml_document.absolute_url()) This sort of thing shouldn't be done in DTML! :P cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] catalog DTML Document
Wolfgang Strobl writes: I asked about how to perform this function (to spell it out again: _adding_ a _DTML Document_) programmatically, i.e. via DTML, of from Python code. ZCatalog.manage_catalogObjects(self, REQUEST, RESPONSE, URL1, urls=None) """ index all Zope objects that 'urls' point to """ You can use "ZopeFind" (-- ZQR) to "find" the objects and the "absolute_url" method to obtain the URL. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] catalog DTML Document
Wolfgang Strobl writes: "Finding"a bunch of DTML Documents into a Zcatalog is easy. But how to do that programmatically? I haven't even found a way of doing that for a single DMTL Document. You call the catalog with your search terms as keyword paramters: dtml-in "catalog(principia_search_source='cool and new')" /dtml-in Have a look at the two ZCatalog tutorials on zope.org. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] catalog DTML Document
On 6 Nov 2000, at 21:46, Dieter Maurer wrote: Wolfgang Strobl writes: "Finding"a bunch of DTML Documents into a Zcatalog is easy. But how to do that programmatically? I haven't even found a way of doing that for a single DMTL Document. You call the catalog with your search terms as keyword paramters: dtml-in "catalog(principia_search_source='cool and new')" /dtml-in Have a look at the two ZCatalog tutorials on zope.org. Who said anything about searching? :-) A ZCatalogs management interface contains a function "Find Items to ZCatalog". This function performs a recursive search and adds all objects matching the specified criteria to the Catalog. This works quite well with DMTL Documents, as long as one does it via the management interface. I asked about how to perform this function (to spell it out again: _adding_ a _DTML Document_) programmatically, i.e. via DTML, of from Python code. There is a How-To "Adding ZClass Instances Programmatically", and a lot of gobbledigoop about when, how and why. But I haven't found anything about how to "index" or "reindex" a plain and simple DTML Document. -- Wolfgang Strobl ___ Zope maillist - [EMAIL PROTECTED] 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 )