[Product-Developers] Traversing from a z3c.form action handler

Cristopher Ewing cewing at u.washington.edu
Sun Feb 14 08:55:04 UTC 2010


I'm trying to work out a way to have the action in a z3c.form based form send the user to the built-in plone content_status_history form, similar to how the 'Change State' action on folder_contents works.  

For some reason I can't seem to find any examples of making this work.  Can someone help me figure out what the right way is to accomplish this task?  I need to use the form action handler to set the 'paths' parameter on the request, so that request.get('paths') will return the paths of the objects I've selected in my form.  I can do that, but once it's done, how to I traverse on to the content_status_history form?  That part has me stumped.

restrictedTraverse will get me the FSControllerFormTemplate object, which is nice enough, but calling that just returns the html of the form without actually publishing it.  

It looks like perhaps something in zope.traversing might help, but nothing appears to implement the ITraversable interface from that package.

Am I just on the wrong track here?

help!

c


********************************
Cris Ewing
Webmaster, Lead Developer
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 616-1288
Cell Phone: (206) 708-9083
Pager:      (206) 559-2306
E-mail: cewing at u.washington.edu
Web: http://www.rad.washington.edu
*******************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20100214/dc88e70a/attachment-0001.html>


More information about the Product-Developers mailing list