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.<div><br></div><div>Already checked the whole tutorial and evertyhing's correct.</div>
<div><br></div><div>By the way, here'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: 'Times New Roman'; 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
- <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'</pre></span><br><div class="gmail_quote">2011/2/11 <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;">
Hi,<br>
<br>
The "Script After" 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 "Script (after)" of all the action'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 <<a href="mailto:leonardo@nexedi.com">leonardo@nexedi.com</a>><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@gmail.com">d.camata@gmail.com</a> escreveu:<br>
> Hi everybody.<br>
><br>
><br>
> I'm doing the Forum Module tutorial, but at the end of it, when I try<br>
> to change my Discussion Thread object state, from draft to public,<br>
for<br>
> example, I keep having this strange error.<br>
><br>
><br>
> Site Error<br>
> An error was encountered while publishing this resource.<br>
><br>
> Error Type: KeyError<br>
> Error Value: 'publish'<br>
><br>
> Can anybody help?<br>
><br>
> --<br>
> Douglas Camata<br>
</div> > Graduando em Ci�ncia da Computa��o (UENF)<br>
<div class="im"> ><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>
> _______________________________________________<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>
<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>
<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@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>