27 Nov
2008
27 Nov
'08
1:51 p.m.
On 27.11.2008 14:45 Uhr, Rupesh P Raj wrote:
Hi,
How can I get the list of all urls from zodb. This is for creating an xml Sitemap? Zope version is 2.8.
You mean a list of all persistent objects? <untested> root = context.getPhysicalRoot() for path, obj in root.ZopeFind(root, search_sub=True): print path, obj.absolute_url(1) This is a *VERY EXPENSIVE* operation unless you use something like Plone or CMF and ask the portal_catalog for all objects. -aj