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
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[EMAIL PROTECTED] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ 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 )