From d.camata at gmail.com Mon Feb 14 18:34:43 2011 From: d.camata at gmail.com (d.camata at gmail.com) Date: Mon, 14 Feb 2011 15:34:43 -0200 Subject: [Erp5-dev] Fwd: Problem in Workflow (following Forum Module Tutorial) In-Reply-To: <20110212085233.0D151BF005D@mail2.tiolive.com> References: <20110212085233.0D151BF005D@mail2.tiolive.com> Message-ID: 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 >
> 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.
> 
> > >
> 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:

http-equiv="content-type" content="text/html; charset=utf-8" /> class="Apple-style-span" style="font-family: &#39;Times New > Roman&#39;; font-size: medium; ">
> 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'

class="gmail_quote">2011/2/11 <jp at nexedi.com>
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc > solid;padding-left:1ex;"> > 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
>
>
> Em Sex, 2011-02-11 ?s 15:01 -0200, d.camata at gmail.com escreveu:
> > 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: target="_blank">http://blog.douglascamata.net
> > Github: target="_blank">http://github.com/douglasamata
> > Twitter: @douglascamata
> > Skype: douglas_camata
> > -----------------------------------
> > Linux User #509211
> >
> >
> > _______________________________________________
> > Erp5-dev mailing list
> > Erp5-dev at erp5.org
/> > > target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev
/> >
>
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> target="_blank">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
>
>
>

_______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev
/> >



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

>
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 Skype: douglas_camata ----------------------------------- Linux User #509211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jp at nexedi.com Mon Feb 14 21:32:30 2011 From: jp at nexedi.com (jp at nexedi.com) Date: Mon, 14 Feb 2011 21:32:30 +0100 Subject: [Erp5-dev] =?utf-8?q?Fwd=3A_Problem_in_Workflow_=28following_Foru?= =?utf-8?q?m_Module=09Tutorial=29?= In-Reply-To: Message-ID: <20110214203200.5F90CBF0094@mail2.tiolive.com> 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
        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.
        

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>
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


?? ? ? ?Em Sex, 2011-02-11 ?s 15:01 -0200, d.camata at gmail.com escreveu:
?? ? ? ?> 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
?? ? ? ?> 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



_______________________________________________
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)

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 Skype: douglas_camata ----------------------------------- Linux User #509211