[Zope] doActionFor
Chris Withers
chris at simplistix.co.uk
Wed Jan 21 04:32:42 EST 2004
Declan Shanaghy wrote:
> 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')">
Yuk. That should be in a python script, not in DTML/
> 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?
What does this form submit to?
I'd put the auto publishing in a python script submitted to by this form and
give that script a proxy role of Manager.
cheers,
Chris
More information about the Zope
mailing list