[Zope] Traversal of ZODB

2000-06-29 Thread David Trudgett

I wonder if anyone has a sample Python script that traverses the ZODB to 
query or perform arbitrary operations on the objects found in it? My 
present requirement is to write a script that goes through and does some 
automated updating of several dozen DTML documents.

Thanks.

David Trudgett


___
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] Traversal of ZODB

2000-07-03 Thread R. David Murray

On Fri, 30 Jun 2000, David Trudgett wrote:
> I wonder if anyone has a sample Python script that traverses the ZODB to 
> query or perform arbitrary operations on the objects found in it? My 
> present requirement is to write a script that goes through and does some 
> automated updating of several dozen DTML documents.

I don't have any sample scripts, but one way to do it would be
to create a ZCatalog, catalog the relevant objects via some
unique field, and then just use Catalog(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 )