IRC logs of #tryton for Tuesday, 2012-04-17

chat.freenode.net #tryton log beginning Tue Apr 17 00:00:01 CEST 2012
2012-04-17 05:44 -!- X-tonic(~bha1@115.248.130.148) has left #tryton
2012-04-17 10:16 <jcavallo> I am looking for a way to display a message in a wizard without using neither raise_user_alert (because it creates an exception and terminates the wizard) nor raise_user_warning (because it only needs a 'Ok' button)
2012-04-17 10:21 <cedk> jcavallo: just use a StateView
2012-04-17 10:21 <bechamel> jcavallo: iirc the vies wizard in the party module does something like that
2012-04-17 10:22 <jcavallo> cedk: I thought about this but it does not really suits my needs, I'd like a popup
2012-04-17 10:22 <jcavallo> bechamel: I'll have a look, thanks
2012-04-17 10:22 <cedk> jcavallo: a popup over what?
2012-04-17 10:23 <jcavallo> cedk: over the wizard current StateView
2012-04-17 10:23 <cedk> jcavallo: ok a popup with just "Ok" button is a wrong design
2012-04-17 10:24 <bechamel> jcavallo: actually I was also talking about a stateview
2012-04-17 10:24 <jcavallo> cedk: I am trying to force the user to correct its form before going on
2012-04-17 10:26 <bechamel> jcavallo: create a stateview that shows error and then bring the user back
2012-04-17 10:26 <jcavallo> bechamel: though about this, it is my backup plan if no other solution is possible
2012-04-17 10:26 <cedk> jcavallo: so just raise a user error
2012-04-17 10:27 <jcavallo> cedk: Well, I might have done something wrong, but raise_user_error just terminates the wizard
2012-04-17 10:28 <bechamel> jcavallo: the best would be a situation where the user cannot enter wrong values, popup and warning messages are always frustrating
2012-04-17 10:31 <jcavallo> bechamel: Unfortunately, I am in a situation where I cannot know easily enough what is good or wrong before this button is clicked (it needs to compute a lot of stuff before dsciding whether it is ok or not)
2012-04-17 10:31 <jcavallo> cedk, bechamel: it's ok, I will just go with another StateView, Thank you anyway
2012-04-17 10:34 <cedk> jcavallo: raising an error from the wizard just let it stay on the previous view
2012-04-17 10:35 <jcavallo> cedk: except if you are in the middle of a StateTransition
2012-04-17 10:35 <jcavallo> cedk: or I missed something
2012-04-17 10:37 <cedk> jcavallo: I don't think so except if there is a bug
2012-04-17 11:53 <cedk> jcavallo: this patch restore the previous behavior: http://codereview.tryton.org/328001
2012-04-17 11:56 <jcavallo> cedk: Thank you ! time to try out hgreview
2012-04-17 17:22 -!- pjstevns(~pjstevns@nfg3.nfgs.net) has left #tryton
2012-04-17 17:31 -!- Mayank(~mayank@122.162.114.3) has left #tryton
2012-04-17 17:50 -!- Mayank(~mayank@122.162.114.3) has left #tryton
2012-04-17 23:48 -!- X-tonic(~bha1@115.248.130.148) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!