On Tue, 2007-12-04 at 10:48 -0500, Maurits van Rees wrote:
> 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."
> 
Thanks. What does it mean - "A page/event/document/etc does not have an
associated workflow"? Can that really happen? Is this just a poor choice
of words for the actual exception? 

It makes me nervous because the site I am working on has to have a
specific workflow process in place, and I don't want orphaned documents
hanging around nor for documents to 'slip through the cracks' because
there is an error in the workflow.

Am I not setting the history correctly? I started with the
plone_workflow as my model and made some modifications. I did not change
any of the variables where I think the history is stored. However, I did
add a new state and transition. Perhaps I need to revise how history is
captured?

Thanks,

Mark

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to