[Zope-CMF] Workflow headaches

Doyon, Jean-Francois Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Thu, 21 Feb 2002 12:16:01 -0500


Florent,

Thanks for the help, but I figured it out, looks like I had some weird
cahcing problem going on ... Not sure why though, I'm pretty damn sure =
I
wasn't caching the actions_box, I know better than that!

What I may have been doing however is RAM Caching a component that =
contains
the actions_box ...

I'll have to be more carefull about this in the future ...

Great product this DC Workflow, works wonders!

Thanks!
J.F.

-----Original Message-----
From: Florent Guillaume [mailto:fg@nuxeo.com]
Sent: Thursday, February 21, 2002 12:09 PM
To: zope-cmf@zope.org
Subject: Re: [Zope-CMF] Workflow headaches


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,
>=20
> 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.
>=20
> 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!!
>=20
> 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.
>=20
> 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).
>=20
> So I started going into the code.  It looks like there are no "object
> actions" being returned by listFilteredActionsFor() :
>=20
> <dtml-let isAnon=3D"portal_membership.isAnonymousUser()"
> AuthClass=3D"isAnon and 'GuestActions' or 'MemberActions'"
> uname=3D"isAnon and 'Guest'
> or portal_membership.getAuthenticatedMember().getUserName()"
> obj=3D"this()"
> actions=3D"portal_actions.listFilteredActionsFor(obj)"
> user_actions=3D"actions['user']"
> folder_actions=3D"actions['folder']"
> object_actions=3D"actions['object'] + actions['workflow']"
> global_actions=3D"actions['global']"
> >
>=20
> 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).
>=20
> I'm doing all this under user "admin" the only user currently on the
system
>=20
> I even tried restarting Zope!
>=20
> 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
> :(
>=20
> Help?
>=20
> Thanks!
>=20
> Jean-Fran=E7ois 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
--=20
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and =
feature
requests