[Zope-CMF] Workflow headaches

Florent Guillaume fg@nuxeo.com
Thu, 21 Feb 2002 17:09:25 +0000 (UTC)


Did you try updating the catalog ?

Also do your actions in the workflow have a title ? Otherwise DCWorkflow
won't put them in its list of actions thus listFilteredActionsFor won't
see them.

HTH,

Florent


Doyon, Jean-Francois <Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
> Hello,
> 
> I was trying to publish an object, but failing, since the page to enter your
> comments was saying the item was published, but the actions box was saying
> it was private.
> 
> So I treid updating a few things in the workflow, just by hitting "update
> security settings" and "change" ... But eventually the actions on the object
> disappeared completely!!
> 
> So I removed the standard default_workflow and added one from DCWorkflow
> which I just installed for the first time. I'm now using the web-editable
> worklow revision 2.
> 
> Still I hit change, update security settings, no go the actions box just
> won't show the status, or the option to publish or anything like that!
> (This is the default actions_box from the generic skin).
> 
> So I started going into the code.  It looks like there are no "object
> actions" being returned by listFilteredActionsFor() :
> 
> <dtml-let isAnon="portal_membership.isAnonymousUser()"
> AuthClass="isAnon and 'GuestActions' or 'MemberActions'"
> uname="isAnon and 'Guest'
> or portal_membership.getAuthenticatedMember().getUserName()"
> obj="this()"
> actions="portal_actions.listFilteredActionsFor(obj)"
> user_actions="actions['user']"
> folder_actions="actions['folder']"
> object_actions="actions['object'] + actions['workflow']"
> global_actions="actions['global']"
> >
> 
> folder_actions is there since I see the "Folder Contents" options ... Global
> and User actions also seem to be there (Preferences, Log Out, Reconfigure
> Portal, Undo).
> 
> I'm doing all this under user "admin" the only user currently on the system
> 
> I even tried restarting Zope!
> 
> Note that applies to ALL CMFDefault content types, I tried both with some
> custom ones, as well as the stanard "Document" for instance ... no actions
> :(
> 
> Help?
> 
> Thanks!
> 
> Jean-François Doyon
> Internet Service Development and Systems Support
> GeoAccess Division
> Canadian Center for Remote Sensing
> Natural Resources Canada
> http://atlas.gc.ca
> Phone: (613) 992-4902
> Fax: (613) 947-2410
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com