On 24 mai, 13:29, Jean Cavallo <[email protected]> wrote:
> Hi,
>
> You could try using a StateTransition which would perform
> the control then return the current state value.
>
> class A(Wizard):
>     real_state = StateView(...)
>     check_state = StateTransition()
>
>     def transition_check_state(self, session):
>          # perform checks using session.real_state
>          if errors:
>              self.raise_user_error(errors)
>          return 'real_state'
>
> That should do it.
>
> Jean CAVALLO

Ok I upgraded to v2.4 and did what you proposed.
But i get the same problem as in v2.2 which is that
self.raise_user_error causes stops execution and the wizard window is
closed on the client... In fact my problem boils down to: how can I
display a user message without stoping execution ?

-- 
[email protected] mailing list

Reply via email to