[Zope-CMF] workflow_history access

JesusAvila@apb.es JesusAvila@apb.es
Thu, 7 Mar 2002 11:24:31 +0100


Hi there,

I am using DCWorkflow.
I need some help here on accessing to "workflow_history".
I can call workflow_history like that:
<dtml-var workflow_history> and it works fine, it returns all the values
included in the dictionary.
The problem comes when i try to access to the diferent values in
"workflow_history" like ...
<dtml-var expr="workflow_history['jesus_workflow'][0]> (jesus_workflow is
the name of the workflow)
There is a file called "zmi_metadata.dtml"  stored in CMFCore/dtml which is
referred from the script WorkflowTool.py and is in there where i can access
to all the parts in "workflow_history" without receiving the message
"
                                                                            
 Unauthorized: You are not allowed to access jesus_workflow in this context 
                                                                            

"
after asking me for my login and password and not accepting even the
administrator one.

The questions are:
1) How can i access to the diferent values of workflow_history? Do i need
to add a special function to the Product? If so, how can i do that? If not,
what can i do?
2) There are some attributes/functions in the scripts declared as Private,
protected and public. Which is the correct way of accesing to these
methods, mostly the public ones from scripts and dtml methods?

Most of my scripts are in portal_skins/custom and i store there most of my
scripts and dtml methods. It is from there where i am trying to access de
values of workflow_history.

Hope it's clear.
Thank you very much in advance.

Jesus "from heaven"