[Zope-CMF] multiple publish of Documents, Images
   
    Chris Withers
     
    chrisw@nipltd.com
       
    Wed, 18 Sep 2002 10:37:19 +0100
    
    
  
Hi Jens,
Jens Hauser wrote:
> I run this script through the following dtml method:
Why on earth are you using DTML for this?!
Here's a python script that will do roughly what I think you want it to:
wf_tool = context.portal_workflow
stack = [context]
for object in stack:
      wf_tool.doActionFor( object, 'publish', comment="Your comment" )
      if object.isPrincipiaFolderish:
         children = objects.contentValues()
         for child in children:
           if not id in ['allgemeines','img','pdf','aktuelles',
                         'Members','news','thumbs']:
             stack.append(child)
Call is it using the following URL:
http://www.zope-domain.de/kitchen-aid/publish_test
..and it should publish all content, per your filtering, in your site.
cheers,
Chris