I have also tried the same thing with a python script and the same error occurrs. --- Chris Withers <chris@simplistix.co.uk> wrote:
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
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com