Discussion:
[Erp5-dev] Problem in Workflow (following Forum Module Tutorial)
d.camata
2011-02-11 17:01:30 UTC
Permalink
Hi everybody.

I'm doing the Forum Module tutorial, but at the end of it, when I try to
change my Discussion Thread object state, from draft to public, for example,
I keep having this strange error.

Site Error

An error was encountered while publishing this resource.

*Error Type: KeyError *
*Error Value: 'publish' *
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata <http://twitter.com/douglascamata>
<http://twitter.com/douglascamata>Skype: douglas_camata
-----------------------------------
Linux User #509211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110211/9e7e84cd/attachment.htm>
Leonardo Rochael Almeida
2011-02-11 17:10:39 UTC
Permalink
Can you show us the traceback for this error?

Regards,

Leo
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when I try
to change my Discussion Thread object state, from draft to public, for
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
d.camata
2011-02-11 17:12:16 UTC
Permalink
Just fixed the error removing the "Script (after)" of all the action's
transitions. Maybe somebody should update the tutorials?

Thanks anyway Leo.

Regards,

2011/2/11 Leonardo Rochael Almeida <leonardo at nexedi.com>
Post by Leonardo Rochael Almeida
Can you show us the traceback for this error?
Regards,
Leo
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when I try
to change my Discussion Thread object state, from draft to public, for
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata <http://twitter.com/douglascamata>
<http://twitter.com/douglascamata>Skype: douglas_camata
-----------------------------------
Linux User #509211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110211/2e467028/attachment.htm>
Rafael Monnerat
2011-02-11 17:32:39 UTC
Permalink
Hi,

Can you be more precise, which tutorial/slide you are using?

If you are interested to fix quickly by youself, you can download (in
odp), fix and send to us review and upload it (I think this is the
fastest way).

Thanks,
Rafael Monnerat
Post by d.camata
Just fixed the error removing the "Script (after)" of all the action's
transitions. Maybe somebody should update the tutorials?
Thanks anyway Leo.
Regards,
2011/2/11 Leonardo Rochael Almeida <leonardo at nexedi.com
<mailto:leonardo at nexedi.com>>
Can you show us the traceback for this error?
Regards,
Leo
Em Sex, 2011-02-11 ?s 15:01 -0200, d.camata at gmail.com
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when
I try
Post by d.camata
to change my Discussion Thread object state, from draft to
public, for
Post by d.camata
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org <mailto:Erp5-dev at erp5.org>
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org <mailto:Erp5-dev at erp5.org>
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
d.camata
2011-02-11 17:41:02 UTC
Permalink
Hello,

I'm following "Tutorial 3: How to create a new workflow" at
http://www.erp5.com/developer-Learning.Track.Forum/view.

Just give me the link to download it in odp format and I'll fix it (in the
page it's downloadable only in pdf).

Regards,

2011/2/11 Rafael Monnerat <rafael at nexedi.com>
Post by Rafael Monnerat
Hi,
Can you be more precise, which tutorial/slide you are using?
If you are interested to fix quickly by youself, you can download (in odp),
fix and send to us review and upload it (I think this is the fastest way).
Thanks,
Rafael Monnerat
Post by d.camata
Just fixed the error removing the "Script (after)" of all the action's
transitions. Maybe somebody should update the tutorials?
Thanks anyway Leo.
Regards,
leonardo at nexedi.com>>
Can you show us the traceback for this error?
Regards,
Leo
Em Sex, 2011-02-11 ?s 15:01 -0200, d.camata at gmail.com
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when
I try
Post by d.camata
to change my Discussion Thread object state, from draft to
public, for
Post by d.camata
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org <mailto:Erp5-dev at erp5.org>
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org <mailto:Erp5-dev at erp5.org>
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata <http://twitter.com/douglascamata>
<http://twitter.com/douglascamata>Skype: douglas_camata
-----------------------------------
Linux User #509211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110211/e5ff8e0c/attachment.htm>
jp
2011-02-11 21:47:00 UTC
Permalink
Hi,

The "Script After" is required. So if there is an error it must come
from somewhere else. Having the traceback would be useful.

(I suppose one workflow was not attached to a portal type from
what you write)

Regards,

JPS


Just fixed the error removing the "Script (after)" of all the action's
transitions. Maybe somebody should update the tutorials?

Thanks anyway Leo.?

Regards,

2011/2/11 Leonardo Rochael Almeida <leonardo at nexedi.com>

Can you show us the traceback for this error?

Regards,

Leo
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when I try
to change my Discussion Thread object state, from draft to public,
for
Post by d.camata
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev




--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
d.camata
2011-02-11 22:26:12 UTC
Permalink
Each transitions itself have 2 transitions, as in publish and
publish_action. I've removed the afters only from those with 'action' in the
name, them everything worked fine.

Already checked the whole tutorial and evertyhing's correct.

By the way, here's the whole traceback when I try to unclose a thread:

Traceback (innermost last):
Module ZPublisher.Publish, line 114, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 48, in Base_callDialogMethod
- <PythonScript at /erp5/Base_callDialogMethod used for
/erp5/discussion_thread_modulo/2>
- Line 48
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 56, in Workflow_statusModify
- <PythonScript at /erp5/Workflow_statusModify used for
/erp5/discussion_thread_modulo/2>
- Line 56
Module AccessControl.ZopeGuards, line 339, in guarded_apply
Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply
Module Products.CMFCore.WorkflowTool, line 301, in doActionFor
Module Products.CMFCore.WorkflowTool, line 616, in _invokeWithNotification
Module Products.DCWorkflow.DCWorkflow, line 287, in doActionFor
Module Products.DCWorkflow.DCWorkflow, line 472, in _changeStateOf
Module Products.ERP5Type.patches.DCWorkflow, line 407, in
DCWorkflowDefinition_executeTransition
Module OFS.ObjectManager, line 715, in __getitem__
KeyError: 'unclose'


2011/2/11 <jp at nexedi.com>
Post by jp
Hi,
The "Script After" is required. So if there is an error it must come
from somewhere else. Having the traceback would be useful.
(I suppose one workflow was not attached to a portal type from
what you write)
Regards,
JPS
Just fixed the error removing the "Script (after)" of all the action's
transitions. Maybe somebody should update the tutorials?
Thanks anyway Leo.?
Regards,
2011/2/11 Leonardo Rochael Almeida <leonardo at nexedi.com>
Can you show us the traceback for this error?
Regards,
Leo
Post by d.camata
Hi everybody.
I'm doing the Forum Module tutorial, but at the end of it, when I
try
Post by d.camata
to change my Discussion Thread object state, from draft to public,
for
Post by d.camata
example, I keep having this strange error.
Site Error
An error was encountered while publishing this resource.
Error Type: KeyError
Error Value: 'publish'
Can anybody help?
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)
Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Skype: douglas_camata
-----------------------------------
Linux User #509211
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata <http://twitter.com/douglascamata>
<http://twitter.com/douglascamata>Skype: douglas_camata
-----------------------------------
Linux User #509211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110211/cf9e9e1e/attachment.htm>
jp
2011-02-12 08:52:59 UTC
Permalink
<pre>
Hi,

You should not remove the "after". They are there on purpose to make
a difference between UI aspect and logical aspect;

Could you send to me an export (zexp) of your workflow ?

Regards,

JPS.
</pre>


<br/><blockquote type="cite">
Each transitions itself have 2 transitions, as in publish and publish_action. I&#39;ve removed the afters only from those with &#39;action&#39; in the name, them everything worked fine.<div><br /></div><div>Already checked the whole tutorial and evertyhing&#39;s correct.</div>
<div><br /></div><div>By the way, here&#39;s the whole traceback when I try to unclose a thread:</div><div><br /></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8" /><span class="Apple-style-span" style="font-family: &amp;#39;Times New Roman&amp;#39;; font-size: medium; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">
Traceback (innermost last):
Module ZPublisher.Publish, line 114, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 48, in Base_callDialogMethod
- &lt;PythonScript at /erp5/Base_callDialogMethod used for /erp5/discussion_thread_modulo/2&gt;
- Line 48
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 56, in Workflow_statusModify
- &lt;PythonScript at /erp5/Workflow_statusModify used for /erp5/discussion_thread_modulo/2&gt;
- Line 56
Module AccessControl.ZopeGuards, line 339, in guarded_apply
Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply
Module Products.CMFCore.WorkflowTool, line 301, in doActionFor
Module Products.CMFCore.WorkflowTool, line 616, in _invokeWithNotification
Module Products.DCWorkflow.DCWorkflow, line 287, in doActionFor
Module Products.DCWorkflow.DCWorkflow, line 472, in _changeStateOf
Module Products.ERP5Type.patches.DCWorkflow, line 407, in DCWorkflowDefinition_executeTransition
Module OFS.ObjectManager, line 715, in __getitem__
KeyError: &#39;unclose&#39;</pre></span><br /><div class="gmail_quote">2011/2/11 <span dir="ltr">&lt;<a href="mailto:jp at nexedi.com">jp at nexedi.com</a>&gt;</span><br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br />
<br />
The &quot;Script After&quot; is required. So if there is an error it must come<br />
from somewhere else. Having the traceback would be useful.<br />
<br />
(I suppose one workflow was not attached to a portal type from<br />
what you write)<br />
<br />
Regards,<br />
<br />
JPS<br />
<div class="im"><br />
<br />
? ?Just fixed the error removing the &quot;Script (after)&quot; of all the action&#39;s<br />
? ?transitions. Maybe somebody should update the tutorials?<br />
<br />
? ?Thanks anyway Leo.?<br />
<br />
? ?Regards,<br />
<br />
? ?2011/2/11 Leonardo Rochael Almeida &lt;<a href="mailto:leonardo at nexedi.com">leonardo at nexedi.com</a>&gt;<br />
<br />
? ? ? ?Can you show us the traceback for this error?<br />
<br />
? ? ? ?Regards,<br />
<br />
? ? ? ?Leo<br />
<br />
<br />
? ? ? ?Em Sex, 2011-02-11 ?s 15:01 -0200, <a href="mailto:d.camata at gmail.com">d.camata at gmail.com</a> escreveu:<br />
? ? ? ?&gt; Hi everybody.<br />
? ? ? ?&gt;<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; I&#39;m doing the Forum Module tutorial, but at the end of it, when I try<br />
? ? ? ?&gt; to change my Discussion Thread object state, from draft to public,<br />
? ? ? ?for<br />
? ? ? ?&gt; example, I keep having this strange error.<br />
? ? ? ?&gt;<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; Site Error<br />
? ? ? ?&gt; An error was encountered while publishing this resource.<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; Error Type: KeyError<br />
? ? ? ?&gt; Error Value: &#39;publish&#39;<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; Can anybody help?<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; --<br />
? ? ? ?&gt; Douglas Camata<br /> </div> ? ? ? ?&gt; Graduando em Ci?ncia da Computa??o (UENF)<br /> <div class="im"> ? ? ? ?&gt;<br />
? ? ? ?&gt; Blog: <a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a><br />
? ? ? ?&gt; Github: <a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a><br />
? ? ? ?&gt; Twitter: @douglascamata<br />
? ? ? ?&gt; Skype: douglas_camata<br />
? ? ? ?&gt; -----------------------------------<br />
? ? ? ?&gt; Linux User #509211<br />
? ? ? ?&gt;<br />
? ? ? ?&gt;<br />
? ? ? ?&gt; _______________________________________________<br />
? ? ? ?&gt; Erp5-dev mailing list<br />
? ? ? ?&gt; <a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
? ? ? ?&gt; <a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br />
<br />
<br />
? ? ? ?_______________________________________________<br />
? ? ? ?Erp5-dev mailing list<br />
? ? ? ?<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
? ? ? ?<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br />
<br />
<br />
<br />
<br />
? ?--<br />
? ?Douglas Camata<br />
</div> ? ?Graduando em Ci?ncia da Computa??o (UENF)<br />
<div><div></div><div class="h5"><br />
? ?Blog: <a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a><br />
? ?Github: <a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a><br />
? ?Twitter: @douglascamata<br />
? ? Skype: douglas_camata<br />
? ?-----------------------------------<br />
? ?Linux User #509211<br />
<br />
<br />
</div></div><br />_______________________________________________<br />
Erp5-dev mailing list<br />
<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br />
<br /></blockquote></div><br /><br clear="all" /><br />-- <br />Douglas Camata<br />Graduando em Ci?ncia da Computa??o (UENF)<div><br /><div>Blog: <a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></div>
<div>Github: <a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></div><div>Twitter: <a href="http://twitter.com/douglascamata" target="_blank">@douglascamata</a></div><div><a href="http://twitter.com/douglascamata" target="_blank"></a>Skype: douglas_camata</div>
<div>-----------------------------------<br />Linux User #509211</div></div><br />
</div>

</blockquote>
d.camata
2011-02-14 17:34:43 UTC
Permalink
I talked to Rafael today and the problem's solved.

The tutorial images and texts aren't consistent. The image was showing a
"Script (after)" in the transitions, altough they must be set to None. And
in the action transitions, the text says to you set the state change in
"Destination State" field, but you should set that to "Remain in State", as
shown in the picture.


Thanks,

2011/2/12 <jp at nexedi.com>
Post by jp
<pre>
Hi,
You should not remove the "after". They are there on purpose to make
a difference between UI aspect and logical aspect;
Could you send to me an export (zexp) of your workflow ?
Regards,
JPS.
</pre>
<br/><blockquote type="cite">
Each transitions itself have 2 transitions, as in publish and
publish_action. I&#39;ve removed the afters only from those with
&#39;action&#39; in the name, them everything worked fine.<div><br
/></div><div>Already checked the whole tutorial and evertyhing&#39;s
correct.</div>
<div><br /></div><div>By the way, here&#39;s the whole traceback when I try
to unclose a thread:</div><div><br /></div><div><meta
http-equiv="content-type" content="text/html; charset=utf-8" /><span
class="Apple-style-span" style="font-family: &amp;#39;Times New
Roman&amp;#39;; font-size: medium; "><pre style="word-wrap: break-word;
white-space: pre-wrap; ">
Module ZPublisher.Publish, line 114, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 48, in Base_callDialogMethod
- &lt;PythonScript at /erp5/Base_callDialogMethod used for
- Line 48
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 325, in _exec
Module None, line 56, in Workflow_statusModify
- &lt;PythonScript at /erp5/Workflow_statusModify used for
- Line 56
Module AccessControl.ZopeGuards, line 339, in guarded_apply
Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply
Module Products.CMFCore.WorkflowTool, line 301, in doActionFor
Module Products.CMFCore.WorkflowTool, line 616, in _invokeWithNotification
Module Products.DCWorkflow.DCWorkflow, line 287, in doActionFor
Module Products.DCWorkflow.DCWorkflow, line 472, in _changeStateOf
Module Products.ERP5Type.patches.DCWorkflow, line 407, in
DCWorkflowDefinition_executeTransition
Module OFS.ObjectManager, line 715, in __getitem__
KeyError: &#39;unclose&#39;</pre></span><br /><div
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex;">
Hi,<br />
<br />
The &quot;Script After&quot; is required. So if there is an error it must come<br />
from somewhere else. Having the traceback would be useful.<br />
<br />
(I suppose one workflow was not attached to a portal type from<br />
what you write)<br />
<br />
Regards,<br />
<br />
JPS<br />
<div class="im"><br />
<br />
Just fixed the error removing the &quot;Script (after)&quot; of all the
action&#39;s<br />
transitions. Maybe somebody should update the tutorials?<br />
<br />
Thanks anyway Leo.?<br />
<br />
Regards,<br />
<br />
<br />
Can you show us the traceback for this error?<br />
<br />
Regards,<br />
<br />
Leo<br />
<br />
<br />
d.camata at gmail.com">d.camata at gmail.com</a> escreveu:<br />
&gt; Hi everybody.<br />
&gt;<br />
&gt;<br />
&gt; I&#39;m doing the Forum Module tutorial, but at the end of it,
when I try<br />
&gt; to change my Discussion Thread object state, from draft to
public,<br />
for<br />
&gt; example, I keep having this strange error.<br />
&gt;<br />
&gt;<br />
&gt; Site Error<br />
&gt; An error was encountered while publishing this resource.<br />
&gt;<br />
&gt; Error Type: KeyError<br />
&gt; Error Value: &#39;publish&#39;<br />
&gt;<br />
&gt; Can anybody help?<br />
&gt;<br />
&gt; --<br />
&gt; Douglas Camata<br /> </div> &gt; Graduando em Ci?ncia da Computa??o (UENF)<br /> <div class="im"> &gt;<br />
&gt; Blog: <a href="http://blog.douglascamata.net"
target="_blank">http://blog.douglascamata.net</a><br />
&gt; Github: <a href="http://github.com/douglasamata"
target="_blank">http://github.com/douglasamata</a><br />
&gt; Skype: douglas_camata<br />
&gt; -----------------------------------<br />
&gt; Linux User #509211<br />
&gt;<br />
&gt;<br />
&gt; _______________________________________________<br />
&gt; Erp5-dev mailing list<br />
&gt; <a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br
/>
&gt; <a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev"
target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br
/>
<br />
<br />
_______________________________________________<br />
Erp5-dev mailing list<br />
<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev"
target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br
/>
<br />
<br />
<br />
<br />
--<br />
Douglas Camata<br />
</div> Graduando em Ci?ncia da Computa??o (UENF)<br />
<div><div></div><div class="h5"><br />
Blog: <a href="http://blog.douglascamata.net" target="_blank">
http://blog.douglascamata.net</a><br />
Github: <a href="http://github.com/douglasamata" target="_blank">
http://github.com/douglasamata</a><br />
Skype: douglas_camata<br />
-----------------------------------<br />
Linux User #509211<br />
<br />
<br />
</div></div><br />_______________________________________________<br />
Erp5-dev mailing list<br />
<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev"
target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br
/>
<br /></blockquote></div><br /><br clear="all" /><br />-- <br />Douglas
<a href="http://blog.douglascamata.net" target="_blank">
http://blog.douglascamata.net</a></div>
<div>Github: <a href="http://github.com/douglasamata" target="_blank">
http://github.com/douglasamata</a></div><div>Twitter: <a href="
http://twitter.com/douglascamata"
douglas_camata</div>
<div>-----------------------------------<br />Linux User
#509211</div></div><br />
</div>
</blockquote>
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev
--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata <http://twitter.com/douglascamata>
<http://twitter.com/douglascamata>Skype: douglas_camata
-----------------------------------
Linux User #509211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110214/198caffc/attachment.htm>
jp
2011-02-14 20:32:30 UTC
Permalink
Hi,

Great thanks.

Regards,

JPS.


I talked to Rafael today and the problem's solved.

The tutorial images and texts aren't consistent. The image was showing a
"Script (after)" in the transitions, altough they must be set to None. And
in the action transitions, the text says to you set the state change in
"Destination State" field, but you should set that to "Remain in State", as
shown in the picture.


Thanks,

2011/2/12 <jp at nexedi.com>

<pre>
Hi,

You should not remove the "after". They are there on purpose to make
a difference between UI aspect and logical aspect;

Could you send to me an export (zexp) of your workflow ?

Regards,

JPS.
</pre>


<br/><blockquote type="cite">
Each transitions itself have 2 transitions, as in publish and
publish_action. I&#39;ve removed the afters only from those with &#39;
action&#39; in the name, them everything worked fine.<div><br /></div>
<div>Already checked the whole tutorial and evertyhing&#39;s correct.</
div>
<div><br /></div><div>By the way, here&#39;s the whole traceback when I
try to unclose a thread:</div><div><br /></div><div><meta http-equiv=
"content-type" content="text/html; charset=utf-8" /><span class=
"Apple-style-span" style="font-family: &amp;#39;Times New Roman&amp;#
39;; font-size: medium; "><pre style="word-wrap: break-word;
white-space: pre-wrap; ">
Traceback (innermost last):
?Module ZPublisher.Publish, line 114, in publish
?Module ZPublisher.mapply, line 88, in mapply
?Module ZPublisher.Publish, line 40, in call_object
?Module Shared.DC.Scripts.Bindings, line 311, in __call__
?Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
?Module Products.PythonScripts.PythonScript, line 325, in _exec
?Module None, line 48, in Base_callDialogMethod
? - &lt;PythonScript at /erp5/Base_callDialogMethod used for /erp5/
discussion_thread_modulo/2&gt;
? - Line 48
?Module Shared.DC.Scripts.Bindings, line 311, in __call__
?Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
?Module Products.PythonScripts.PythonScript, line 325, in _exec
?Module None, line 56, in Workflow_statusModify
? - &lt;PythonScript at /erp5/Workflow_statusModify used for /erp5/
discussion_thread_modulo/2&gt;
? - Line 56
?Module AccessControl.ZopeGuards, line 339, in guarded_apply
?Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply
?Module Products.CMFCore.WorkflowTool, line 301, in doActionFor
?Module Products.CMFCore.WorkflowTool, line 616, in
_invokeWithNotification
?Module Products.DCWorkflow.DCWorkflow, line 287, in doActionFor
?Module Products.DCWorkflow.DCWorkflow, line 472, in _changeStateOf
?Module Products.ERP5Type.patches.DCWorkflow, line 407, in
DCWorkflowDefinition_executeTransition
?Module OFS.ObjectManager, line 715, in __getitem__
KeyError: &#39;unclose&#39;</pre></span><br /><div class="gmail_quote">
2011/2/11 ?<span dir="ltr">&lt;<a href="mailto:jp at nexedi.com">
jp at nexedi.com</a>&gt;</span><br /><blockquote class="gmail_quote" style
="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br />
<br />
The &quot;Script After&quot; is required. So if there is an error it
must come<br />
from somewhere else. Having the traceback would be useful.<br />
<br />
(I suppose one workflow was not attached to a portal type from<br />
what you write)<br />
<br />
Regards,<br />
<br />
JPS<br />
<div class="im"><br />
<br />
?? ?Just fixed the error removing the &quot;Script (after)&quot; of all
the action&#39;s<br />
?? ?transitions. Maybe somebody should update the tutorials?<br />
<br />
?? ?Thanks anyway Leo.?<br />
<br />
?? ?Regards,<br />
<br />
?? ?2011/2/11 Leonardo Rochael Almeida &lt;<a href="mailto:
leonardo at nexedi.com">leonardo at nexedi.com</a>&gt;<br />
<br />
?? ? ? ?Can you show us the traceback for this error?<br />
<br />
?? ? ? ?Regards,<br />
<br />
?? ? ? ?Leo<br />
<br />
<br />
?? ? ? ?Em Sex, 2011-02-11 ?s 15:01 -0200, <a href="mailto:
d.camata at gmail.com">d.camata at gmail.com</a> escreveu:<br />
?? ? ? ?&gt; Hi everybody.<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; I&#39;m doing the Forum Module tutorial, but at the end of
it, when I try<br />
?? ? ? ?&gt; to change my Discussion Thread object state, from draft to
public,<br />
?? ? ? ?for<br />
?? ? ? ?&gt; example, I keep having this strange error.<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; Site Error<br />
?? ? ? ?&gt; An error was encountered while publishing this resource.
<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; Error Type: KeyError<br />
?? ? ? ?&gt; Error Value: &#39;publish&#39;<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; Can anybody help?<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; --<br />
?? ? ? ?&gt; Douglas Camata<br /> </div> ? ? ? ?&gt; Graduando em Ci?ncia da Computa??o (UENF)<br /> <div class="im"> ? ? ? ?&gt;<br />
?? ? ? ?&gt; Blog: <a href="http://blog.douglascamata.net" target=
"_blank">http://blog.douglascamata.net</a><br />
?? ? ? ?&gt; Github: <a href="http://github.com/douglasamata" target=
"_blank">http://github.com/douglasamata</a><br />
?? ? ? ?&gt; Twitter: @douglascamata<br />
?? ? ? ?&gt; Skype: douglas_camata<br />
?? ? ? ?&gt; -----------------------------------<br />
?? ? ? ?&gt; Linux User #509211<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt;<br />
?? ? ? ?&gt; _______________________________________________<br />
?? ? ? ?&gt; Erp5-dev mailing list<br />
?? ? ? ?&gt; <a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a>
<br />
?? ? ? ?&gt; <a href="https://mail.tiolive.com/mailman/listinfo/
erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/
erp5-dev</a><br />
<br />
<br />
?? ? ? ?_______________________________________________<br />
?? ? ? ?Erp5-dev mailing list<br />
?? ? ? ?<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
?? ? ? ?<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev"
target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a>
<br />
<br />
<br />
<br />
<br />
?? ?--<br />
?? ?Douglas Camata<br />
</div> ? ?Graduando em Ci?ncia da Computa??o (UENF)<br />
<div><div></div><div class="h5"><br />
?? ?Blog: <a href="http://blog.douglascamata.net" target="_blank">http:
//blog.douglascamata.net</a><br />
?? ?Github: <a href="http://github.com/douglasamata" target="_blank">
http://github.com/douglasamata</a><br />
?? ?Twitter: @douglascamata<br />
?? ? Skype: douglas_camata<br />
?? ?-----------------------------------<br />
?? ?Linux User #509211<br />
<br />
<br />
</div></div><br />_______________________________________________<br />
Erp5-dev mailing list<br />
<a href="mailto:Erp5-dev at erp5.org">Erp5-dev at erp5.org</a><br />
<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target=
"_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br />
<br /></blockquote></div><br /><br clear="all" /><br />-- <br />Douglas
Camata<br />Graduando em Ci?ncia da Computa??o (UENF)<div><br /><div>
Blog: <a href="http://blog.douglascamata.net" target="_blank">http://
blog.douglascamata.net</a></div>
<div>Github: <a href="http://github.com/douglasamata" target="_blank">
http://github.com/douglasamata</a></div><div>Twitter: <a href="http://
twitter.com/douglascamata" target="_blank">@douglascamata</a></div>
<div><a href="http://twitter.com/douglascamata" target="_blank"></a>
Skype: douglas_camata</div>
<div>-----------------------------------<br />Linux User #509211</div>
</div><br />
</div>

</blockquote>
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
https://mail.tiolive.com/mailman/listinfo/erp5-dev





--
Douglas Camata
Graduando em Ci?ncia da Computa??o (UENF)

Blog: http://blog.douglascamata.net
Github: http://github.com/douglasamata
Twitter: @douglascamata
Skype: douglas_camata
-----------------------------------
Linux User #509211

Loading...