[Zope-CMF] customizing workflows

william milnor wmilnor@soforext.net
Thu, 20 Feb 2003 12:32:32 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C2D8DC.35C93A20
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

David (and anyone else who has been following my emails),

 

I have found that the problem has to do with 'worklists' which are
exclusive to the DC Workflows.  There is a method called
'listGlobalActions' in CMFDefault.DefaultWorkflow.
DefaultWorkflowDefinition that is overwritten in
DCWorkflow.DCWorkflow.DCWorkflowDefinition.  By removing the overridden
method in the DCWorkflowDefinition class, things work as they do in the
CMF default workflow.  However, this negates the functionality of
worklists.

 

Thus, I am going to create my own workflow class that extends
CMFDefault.DefaultWorkflow.DefaultWorkflowDefinition.  I will post more
messages as I progress along this path.

 

-----Original Message-----
From: David Cain [mailto:dacain@library.syr.edu] 
Sent: Wednesday, February 19, 2003 8:55 AM
To: 'william milnor'
Subject: RE: [Zope-CMF] customizing workflows

 

William,

 

I too would like to know the answer to this problem.  If you find an
answer could you please post it to the group, or even better, create an
account on cmf.zope.org and create a document for others.

 

Thanks.

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org] On Behalf
Of william milnor
Sent: Tuesday, February 18, 2003 2:01 PM
To: zope-cmf@zope.org
Subject: [Zope-CMF] customizing workflows

Hey everybody,

 

I have installed DC Workflow on my server.  I have added a
default_workflow (Web-configurable workflow [Revision 2]).  Everything
seems to work fine except the only members that see 'Pending Review(1)'
in their actions list are those that have 'Review Portal Content'
permission at the root of my CMF site.  For instance, I create a folder
called foo in my root.  I give user X the reviewer role at the root
level and I give user Y the reviewer role at the level of foo.  If a
user Z submits a piece of content called bar (associated with the new
workflow), X sees a link for items pending review, but Y does not see
the same link in his actions list.  Now, user y is able to traverse to
foo and is can even publish bar; so his permissions do not seem to be
the problem.  In fact, if I now give Y the reviewer role at the root, he
does see a link for items pending review.

 

Has anyone customized a workflow and come across this problem?  Any help
would be greatly appreciated.  Thanks.

 

 


------=_NextPart_000_0001_01C2D8DC.35C93A20
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
<title>Message</title>

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>David (and anyone else who has been
following my emails),</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I have found that the problem has =
to do
with &#8216;worklists&#8217; which are exclusive to the DC =
Workflows.&nbsp;
There is a method called &#8216;listGlobalActions&#8217; in =
CMFDefault.DefaultWorkflow.
DefaultWorkflowDefinition that is overwritten in =
DCWorkflow.DCWorkflow.DCWorkflowDefinition.&nbsp;
By removing the overridden method in the DCWorkflowDefinition class, =
things
work as they do in the CMF default workflow.&nbsp; However, this negates =
the
functionality of worklists.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thus, I am going to create my own =
workflow
class that extends =
CMFDefault.DefaultWorkflow.DefaultWorkflowDefinition.&nbsp;
I will post more messages as I progress along this =
path.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> David Cain
[mailto:dacain@library.syr.edu] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, February =
19, 2003
8:55 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> 'william milnor'<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [Zope-CMF]
customizing workflows</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dblue face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:blue'>William,</span></=
font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dblue face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:blue'>I too would like =
to know
the answer to this problem.&nbsp; If you find an answer could you please =
post
it to the group, or even better, create an account on cmf.zope.org and =
create a
document for others.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dblue face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:blue'>Thanks.</span></f=
ont></p>

</div>

<blockquote style=3D'border:none;border-left:solid blue =
1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'=
>

<p class=3DMsoNormal =
style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> =
zope-cmf-admin@zope.org
[mailto:zope-cmf-admin@zope.org] <b><span style=3D'font-weight:bold'>On =
Behalf Of
</span></b>william milnor<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, February =
18, 2003
2:01 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> zope-cmf@zope.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Zope-CMF] =
customizing
workflows</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Hey =
everybody,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have installed DC =
Workflow on my
server.&nbsp; I have added a </span></font>default_workflow =
(Web-configurable
workflow [Revision 2]).&nbsp; Everything seems to work fine except the =
only
members that see &#8216;Pending Review(1)&#8217; in their actions list =
are
those that have &#8216;Review Portal Content&#8217; permission at the =
root of
my CMF site.&nbsp; For instance, I create a folder called foo in my =
root.&nbsp;
I give user X the reviewer role at the root level and I give user Y the
reviewer role at the level of foo.&nbsp; If a user Z submits a piece of =
content
called bar (associated with the new workflow), X sees a link for items =
pending
review, but Y does not see the same link in his actions list.&nbsp; Now, =
user y
is able to traverse to foo and is can even publish bar; so his =
permissions do
not seem to be the problem.&nbsp; In fact, if I now give Y the reviewer =
role at
the root, he <b><span style=3D'font-weight:bold'>does</span></b> see a =
link for
items pending review.</p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>Has anyone customized a workflow and come =
across this
problem?&nbsp; Any help would be greatly appreciated.&nbsp; =
Thanks.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</blockquote>

</div>

</body>

</html>

------=_NextPart_000_0001_01C2D8DC.35C93A20--