[Zope] doActionFor

Declan Shanaghy declanshanaghy at yahoo.com
Tue Jan 20 22:18:38 EST 2004


Im having trouble auto-publishing objects.

In the content_submit_form after checking that the object should be
auto published i have these lines.

  <dtml-call "portal_workflow.doActionFor(this(), 'publish')">
  <dtml-call
"RESPONSE.redirect('view?portal_status_message=Status+changed+to+published')">

This works fine for "Manager" but if a "Member" tries to do it it
generates an unauthorized() error message.

I even put a proxy role of Manager on the content_submit_form script
but i still get the error.

How can i accomplish this?






__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Zope mailing list