From: Rob M. <ra...@bu...> - 2005-10-16 01:14:48
|
On Oct 15, 2005, at 5:14 PM, Tikkun Webmaster wrote: > Hi, > > Is anyone aware of a technique to bulk modify members' state from a > page template? I'm using CMFMember 1.1-beta1. urgh. normally you should be able to do this by browsing to SITE_URL/ portal_memberdata/folder_contents, but things are a bit screwed up w/ the way CMFMember is handling folder_contents right now. i plan on straightening this out shortly. in the meantime, here's a workaround: - in the ZMI, browse to portal_skins/plone_templates/folder_contents. - customize the template by clicking the 'customize' button - in the breadcrumbs, click on 'custom' so you can see the contents of the custom folder - rename 'folder_contents' to 'mdc_contents' - browse to SITE_URL/portal_memberdata/mdc_contents this template should allow you to select multiple member objects and then click on the 'change state' button to change their workflow state. if you're trying to write a custom template to do this, then you'll want to have the template submit to a python script (ideally using a Controller Page Template from CMFFormController). this script should then make calls to the workflow tool to perform the requested workflow transitions. the workflow tool's API can be discovered by installing DocFinderTab and then clicking on the 'doc' tab in the ZMI for the portal_workflow tool that is at the root of your plone site. or, you can reverse engineer the way that folder_contents does it. good luck, -r |