I talked to Rafael today and the problem's solved.<div><br></div><div>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.</div>
<div><br></div><div><br></div><div>Thanks,<br><br><div class="gmail_quote">2011/2/12 <span dir="ltr"><<a href="mailto:jp@nexedi.com">jp@nexedi.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<pre><br>
Hi,<br>
<br>
You should not remove the "after". They are there on purpose to make<br>
a difference between UI aspect and logical aspect;<br>
<br>
Could you send to me an export (zexp) of your workflow ?<br>
<br>
Regards,<br>
<br>
JPS.<br>
</pre><br>
<br>
<br>
<br/><blockquote type="cite"><br>
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><br>
<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; "><br>
<div class="im">Traceback (innermost last):<br>
Module ZPublisher.Publish, line 114, in publish<br>
Module ZPublisher.mapply, line 88, in mapply<br>
Module ZPublisher.Publish, line 40, in call_object<br>
Module Shared.DC.Scripts.Bindings, line 311, in __call__<br>
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec<br>
Module Products.PythonScripts.PythonScript, line 325, in _exec<br>
Module None, line 48, in Base_callDialogMethod<br>
</div> - &lt;PythonScript at /erp5/Base_callDialogMethod used for /erp5/discussion_thread_modulo/2&gt;<br>
<div class="im"> - Line 48<br>
Module Shared.DC.Scripts.Bindings, line 311, in __call__<br>
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec<br>
Module Products.PythonScripts.PythonScript, line 325, in _exec<br>
Module None, line 56, in Workflow_statusModify<br>
</div> - &lt;PythonScript at /erp5/Workflow_statusModify used for /erp5/discussion_thread_modulo/2&gt;<br>
<div class="im"> - Line 56<br>
Module AccessControl.ZopeGuards, line 339, in guarded_apply<br>
Module AccessControl.ZopeGuards, line 361, in builtin_guarded_apply<br>
Module Products.CMFCore.WorkflowTool, line 301, in doActionFor<br>
Module Products.CMFCore.WorkflowTool, line 616, in _invokeWithNotification<br>
Module Products.DCWorkflow.DCWorkflow, line 287, in doActionFor<br>
Module Products.DCWorkflow.DCWorkflow, line 472, in _changeStateOf<br>
Module Products.ERP5Type.patches.DCWorkflow, line 407, in DCWorkflowDefinition_executeTransition<br>
Module OFS.ObjectManager, line 715, in __getitem__<br>
</div>KeyError: &#39;unclose&#39;</pre></span><br /><div class="gmail_quote">2011/2/11 <span dir="ltr">&lt;<a href="mailto:<a href="mailto:jp@nexedi.com">jp@nexedi.com</a>"><a href="mailto:jp@nexedi.com">jp@nexedi.com</a></a>&gt;</span><br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi,<br /><br>
<br /><br>
The &quot;Script After&quot; is required. So if there is an error it must come<br /><br>
from somewhere else. Having the traceback would be useful.<br /><br>
<br /><br>
(I suppose one workflow was not attached to a portal type from<br /><br>
what you write)<br /><br>
<br /><br>
Regards,<br /><br>
<br /><br>
JPS<br /><br>
<div class="im"><br /><br>
<br /><br>
Just fixed the error removing the &quot;Script (after)&quot; of all the action&#39;s<br /><br>
transitions. Maybe somebody should update the tutorials?<br /><br>
<br /><br>
Thanks anyway Leo.�<br /><br>
<br /><br>
Regards,<br /><br>
<br /><br>
2011/2/11 Leonardo Rochael Almeida &lt;<a href="mailto:<a href="mailto:leonardo@nexedi.com">leonardo@nexedi.com</a>"><a href="mailto:leonardo@nexedi.com">leonardo@nexedi.com</a></a>&gt;<br /><br>
<br /><br>
Can you show us the traceback for this error?<br /><br>
<br /><br>
Regards,<br /><br>
<br /><br>
Leo<br /><br>
<br /><br>
<br /><br>
Em Sex, 2011-02-11 �s 15:01 -0200, <a href="mailto:<a href="mailto:d.camata@gmail.com">d.camata@gmail.com</a>"><a href="mailto:d.camata@gmail.com">d.camata@gmail.com</a></a> escreveu:<br /><br>
&gt; Hi everybody.<br /><br>
&gt;<br /><br>
&gt;<br /><br>
&gt; I&#39;m doing the Forum Module tutorial, but at the end of it, when I try<br /><br>
&gt; to change my Discussion Thread object state, from draft to public,<br /><br>
for<br /><br>
&gt; example, I keep having this strange error.<br /><br>
&gt;<br /><br>
&gt;<br /><br>
&gt; Site Error<br /><br>
&gt; An error was encountered while publishing this resource.<br /><br>
&gt;<br /><br>
&gt; Error Type: KeyError<br /><br>
&gt; Error Value: &#39;publish&#39;<br /><br>
&gt;<br /><br>
&gt; Can anybody help?<br /><br>
&gt;<br /><br>
&gt; --<br /><br>
&gt; Douglas Camata<br /><br>
</div> &gt; Graduando em Ci�ncia da Computa��o (UENF)<br /><br>
<div class="im"> &gt;<br /><br>
&gt; Blog: <a href="<a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a>" target="_blank"><a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></a><br /><br>
&gt; Github: <a href="<a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a>" target="_blank"><a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></a><br /><br>
&gt; Twitter: @douglascamata<br /><br>
&gt; Skype: douglas_camata<br /><br>
&gt; -----------------------------------<br /><br>
&gt; Linux User #509211<br /><br>
&gt;<br /><br>
&gt;<br /><br>
&gt; _______________________________________________<br /><br>
&gt; Erp5-dev mailing list<br /><br>
&gt; <a href="mailto:<a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a>"><a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a></a><br /><br>
&gt; <a href="<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a>" target="_blank"><a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a></a><br /><br>
<br /><br>
<br /><br>
_______________________________________________<br /><br>
Erp5-dev mailing list<br /><br>
<a href="mailto:<a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a>"><a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a></a><br /><br>
<a href="<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a>" target="_blank"><a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a></a><br /><br>
<br /><br>
<br /><br>
<br /><br>
<br /><br>
--<br /><br>
Douglas Camata<br /><br>
</div> Graduando em Ci�ncia da Computa��o (UENF)<br /><br>
<div><div></div><div class="h5"><br /><br>
Blog: <a href="<a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a>" target="_blank"><a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></a><br /><br>
Github: <a href="<a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a>" target="_blank"><a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></a><br /><br>
Twitter: @douglascamata<br /><br>
Skype: douglas_camata<br /><br>
-----------------------------------<br /><br>
Linux User #509211<br /><br>
<br /><br>
<br /><br>
</div></div><br />_______________________________________________<br /><br>
Erp5-dev mailing list<br /><br>
<a href="mailto:<a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a>"><a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a></a><br /><br>
<a href="<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a>" target="_blank"><a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a></a><br /><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="<a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a>" target="_blank"><a href="http://blog.douglascamata.net" target="_blank">http://blog.douglascamata.net</a></a></div><br>
<div>Github: <a href="<a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a>" target="_blank"><a href="http://github.com/douglasamata" target="_blank">http://github.com/douglasamata</a></a></div><div>Twitter: <a href="<a href="http://twitter.com/douglascamata" target="_blank">http://twitter.com/douglascamata</a>" target="_blank">@douglascamata</a></div><div><a href="<a href="http://twitter.com/douglascamata" target="_blank">http://twitter.com/douglascamata</a>" target="_blank"></a>Skype: douglas_camata</div><br>
<div>-----------------------------------<br />Linux User #509211</div></div><br /><br>
</div><br>
<br>
</blockquote><br>_______________________________________________<br>
Erp5-dev mailing list<br>
<a href="mailto:Erp5-dev@erp5.org">Erp5-dev@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>