Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以编程方式将文件夹中所有对象的状态更改为“已发布”?所有都是 Plone 4 的默认对象,如链接、页面、文档等。
循环该文件夹中的所有对象并发布它们:
wftool = getToolByName(folder, 'portal_workflow') for child in folder.objectValues(): wftool.doActionFor(child, 'publish')