Need help with workflow error message
Maurits van Rees
m.van.rees at zestsoftware.nl
Tue Dec 4 15:48:39 UTC 2007
Mark Phillips, on 2007-12-04:
> I am modifying a new workflow (changing permissions through the ZMI, but
> not the stated or transitions), and I keep getting messages like this -
>
> CMFPlone/skins/plone_scripts/getWorkflowHistory:
> http://localhost:8081/ahs/newspaper/front-page has no associated
> workflow
>
> When I look at the page, I can edit it, save it, read the history, add a
> comment to the history, change its state, etc.
>
> How do I get rid of this error message?
>
> Thanks
>
> Mark
See CMFPlone/skins/plone_scripts/getWorkflowHistory.py
This basically does this when you view a page:
try:
# get total history
review_history =context.portal_workflow.getInfoFor(context, 'review_history')
except WorkflowException:
log( 'CMFPlone/skins/plone_scripts/getWorkflowHistory: '
'%s has no associated workflow' % context.absolute_url() )
When the content you are looking at has no workflow, you will get this
in your log file. I think it should be safe to customize this script
in the portal_skins tool and change the "log(....)" line in "pass".
But really this log message informs you about something that is
harmless. So it should probably either not be logged in that case or
this script should not even be called. I wondered about this too
before I dived in to change a few things here before Plone 3 was
released.
--
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
I can assure you mine are still greater."
More information about the Product-Developers
mailing list