-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rupesh P Raj wrote:
> I am trying to use ZCatalog to create a sitemap. For that I created a > ZCatalog object. In "Find Objects" tab, I selected objects of type Page > Template and DTML Document, I selected the permission as "Access Transient > Objects". > > What options should I select for creating a sitemap. Am I going in the > correct way? Please advice. > > I use Zope 2.8 (there is no Plone) The "Find Objects" tab searches the catalog's parent and its descendents for objects of the given type(s). I would leave the permission unselected to do the search. Once indexed, you can query the objects in the catalog by calling its 'search' or 'searchResults' methods. E.g., in a PythonScript: catalog = context.my_catalog for result in catalog.search(): print catalog.getPath() return printed Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJb1B0+gerLs4ltQ4RAk0MAJoCUO0u2VcarpyNJC1ssG4HXT/4eQCfVqt5 hH7kmNMCWcQKL1VDhgCRFJU= =hkt/ -----END PGP SIGNATURE----- _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )