[Erp5-dev] Fwd: Problem in Workflow (following Forum Module Tutorial)

jp at nexedi.com jp at nexedi.com
Mon Feb 14 21:32:30 CET 2011


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




More information about the Erp5-dev mailing list