[Zope-CMF] Finding all syndication enabled folders

vsbabu@vsbabu.org vsbabu@vsbabu.org
Tue, 28 May 2002 12:38:54 -0500


Never mind, it was a simple matter using portal_catalog.
##
results = []
for r in context.portal_catalog({'Type':['Folder']}):
    o = r.getObject()
    if 1==context.portal_syndication.isSyndicationAllowed(o):
        results.append(o)
return results
##

On Tue, May 28, 2002 at 10:44:42AM -0500, vsbabu@vsbabu.org wrote:
> Hello,
> 
> Does any one know how to easily search a CMF site for all folders that've Syndication enabled?
> 
> We'd like to make a Py script that prints a list of such folders...
> 
> Thanks in advance
> - vsb
> 
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests