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
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
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
Declan Shanaghy wrote:
I have also tried the same thing with a python script and the same error occurrs.
Okay, well, if you're not gonna tell us what that error is (exception type, value and traceback please) then we can't help you... Chris
Well if you had read the original message correctly, you would see that i did provide that information. QUOTE :
This works fine for "Manager" but if a "Member" tries to do it it generates an unauthorized() error message.
There is no exception, therefore no stack trace. The browser just pops the enter username and password dialog box. --- Chris Withers <chris@simplistix.co.uk> wrote:
Declan Shanaghy wrote:
I have also tried the same thing with a python script and the same error occurrs.
Okay, well, if you're not gonna tell us what that error is (exception type, value and traceback please) then we can't help you...
Chris
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Declan Shanaghy wrote:
This works fine for "Manager" but if a "Member" tries to do it it generates an unauthorized() error message.
There is no exception, therefore no stack trace. The browser just pops the enter username and password dialog box.
So hit cancel and take a look at the traceback left behind ;-) You may need to remove Unauthorized from the error_log object and have a look there... The VerboseSecurity product may also be your friend... cheers, Chris
participants (2)
-
Chris Withers -
Declan Shanaghy