[Zope-CMF] Folders and workflow status?

Tres Seaver tseaver@zope.com
11 Jul 2002 13:13:15 -0400


On Thu, 2002-07-11 at 12:58, Carl Rendell wrote:
> 
> On Thursday, July 11, 2002, at 06:34  AM, Tres Seaver wrote:
> 
> > On Thu, 2002-07-11 at 03:00, Luca Olivetti wrote:
> >> Carl Rendell wrote:
> >>> It looks as though there is already a bug logged in the collector 
> >>> for this:
> >>>
> >>> http://collector.zope.org/CMF/4
> >>>
> >>> Is this why folders now have a 'Status: private' displayed as part of
> >>> the actions box? I'm sure there are issues other than cosmetic to
> >>> resolve. The most egregious issue for me is that the 'Publish' 
> >>> link is
> >>> displayed, but will fail if a user attempts to publish the 
> >>> folder. Kind
> >>> of a bad loop for the user.
> >>
> >> A possible workaround is to leave empty the workflow for 'Folder' in
> >> portal_workflow (the fact that 'Folder' appears there, while 
> >> useful for
> >> this workaround, is confusing, since PortalFolder isn't neither
> >> catalogged --it explicitly redefines reindexObject as pass-- nor
> >> "workflowable", and that got my head banging for a while -- see my
> >> recent messages about it).
> >
> > This bug was masked by others, whose repair by Florent surfaced it.
> > Essentially, Luca's "workaround" is the correct solution;  Folders
> > (likewise Topics) shouldn't be participating in workflow.  We should
> > probably add a note to the "Upgrading" section of the INSTALL.txt,
> > warning people to remove the workflow bindings for Folder and Topic.
> >
> 
> OK, I believe this case I was trying to track down is related to 
> this situation.
> 
> I have a couple of catalog aware folder products that I'm using for 
> this test, and when creating new objects in the Zope 
> 2.5.1/CMF-1.3-beta1 environment everything works just fine. I 
> create these types, and both authenticated an anonymous users can 
> view them.
> 
> However, in the Zope 2.5.1/CMF-1.3-beta2 environment, the same 
> objects are not viewable by anonymous users. The anonymous user is 
> forwarded to the login screen as if they had hit a non-published or 
> private item.
> 
> I'll be doing some additional testing, but this behavior seems to 
> indicate the the folders are being registered with workflow in a 
> 'private' state.

That is correct.  You want to remove the "binding" of the "(Default
workflow)" to the type of your custom folders (on the "Workflows" tab
of the 'portal_workflow' tool).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com