[Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-11-28 Thread Ross Patterson
Does anyone know of an existing tool for restoring all security settings/rolemaps from the ground up? Obviously I can use rolemap.xml where applicable and update workflow security. I want to first restore the Zope root to code defaults and restore the whole hierarchy to just acquire. I'm going t

Re: [Zope] How to get all URL's

2008-11-28 Thread Andreas Jung
On 28.11.2008 12:56 Uhr, Chris Withers wrote: Andreas Jung wrote: There is a difference pulling 500k brains out-of-the catalog compared to traversing a ZODB with 500k object. I assume that the catalog solution is slightly faster :) Yes, well, you kno what they say about assumptions... ok, yo

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > There is a difference pulling 500k brains out-of-the catalog compared to > traversing a ZODB with 500k object. I assume that the catalog solution > is slightly faster :) Yes, well, you kno what they say about assumptions... Chris -- Simplistix - Content Management, Zope

Re: [Zope] How to get all URL's

2008-11-28 Thread Andreas Jung
On 28.11.2008 12:21 Uhr, Chris Withers wrote: Andreas Jung wrote: huh? You have to walk through the whole folder hierarchy?1 So? With a catalog query you'll have return the *whole* catalog contents. There is a difference pulling 500k brains out-of-the catalog compared to traversing a ZODB

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > > huh? You have to walk through the whole folder hierarchy?1 So? With a catalog query you'll have return the *whole* catalog contents. And if you're stupid enough to get getObject involved, then you drag them all into memory *and* the catalog anyway... Chris -- Simplisti

Re: [Zope] How to get all URL's

2008-11-28 Thread Andreas Jung
On 28.11.2008 12:15 Uhr, Chris Withers wrote: Andreas Jung wrote: This is a *VERY EXPENSIVE* operation unless you use something like Plone or CMF and ask the portal_catalog for all objects. How is that any less expensive? huh? You have to walk through the whole folder hierarchy?1 -aj begi

Re: [Zope] How to get all URL's

2008-11-28 Thread Chris Withers
Andreas Jung wrote: > This is a *VERY EXPENSIVE* operation unless you use something like > Plone or CMF and ask the portal_catalog for all objects. How is that any less expensive? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _