![](https://seccdn.libravatar.org/avatar/c6230e4ce683f6f38991d06b0df892bc.jpg?s=120&d=mm&r=g)
On Monday 22 of March 2010 12:10:33 Stefan Schubert wrote:
Hi, currently we have two requests for showing special states of WebYaST plugins in the status plugin:
Mail Settings: When the user has submitted a test mail he will be asked in the status module, if he has received the email. This message disappears after he has confirmed the receive in the status module.
Registration: A warning will be displayed in the status module if the user has skipped over the registration. This warning disappears only after the user has successfully finished the registration.
I believe that we will have more such requests in the future. So we should think about a generic solution. One proposal would be:
Webservice side: The status module checks each installed plugin if it has an interface "status"
like: registration/registration/status [GET|POST]
[GET| returns:
<states> <state> <level>info|warning|error</level>
id-string .... ... true|false </state> <state> .... </state> </states>So each plugin can return more than one message. The "level" will be displayed in the status module. "*_description" is a English default description which will be displayed if there is no translation on the WebYaST client side available. "message_id" indicates the translated message in the WebYaST client status module. If the user press the "confirm_button" a POST request will be send to the concerning service plugin. Then it is up to the service plugin to reset the state.
Where do you get the translated text, if the status command is purely rest-based? Or are we going to translate messages from rest services as well? Jiri -- Jiri Suchomel SUSE LINUX, s.r.o. e-mail: jsuchome@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Praha 9, Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org