Mailinglist Archive: yast-devel (59 mails)

< Previous Next >
[yast-devel] Showing state of WebYaST plugins in status plugin.
  • From: Stefan Schubert <schubi@xxxxxxxxxx>
  • Date: Mon, 22 Mar 2010 12:10:33 +0100
  • Message-id: <4BA75029.8020605@xxxxxxxxxx>
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>
<message_id>id-string</message_id>
<short_description>....</short_description>
<long_description>...</long_description>
<confirm_button>true|false</confirm_button>
</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.

Not more would be needed from a plugin which intents to display a
message/error
in the status module.

The service status module "collects" all these messages and send it to the
client status module which has to display the messages.

That would be one solution for displaying plugin messages. But perhaps there
is another smarter one too.
Suggestions :-)

Greetings
Stefan









Webclient side:
The status module checks each installed plugin if it has an interface

"status" and status_reset"

"status"





--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >