Mailinglist Archive: yast-devel (95 mails)

< Previous Next >
Re: [yast-devel] Permission granularity for webyast modules
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Mon, 15 Jun 2009 14:41:01 +0200
  • Message-id: <20090615124101.GE6072@xxxxxxxxxxxxxxxx>
On Mon, Jun 15, 2009 at 02:27:12PM +0200, josef reidinger wrote:
Martin Vidner napsal(a):
Why on Earth can someone see that the box talks Czech but not that
German and Slovak are available too? Or the reverse? Please don't
make the admins ridicule us because of that. Make the permissions
simple.

It is because of efficiency. I need somehow get constant list of
supported languages. But current language can change during session and
I think that it is vasting of resources to get during each index call
whole supported list. So this getlanguages permission is added only due
to dbus yast interface. (getLanguages is the biggest performance problem
in current language dbus interface as it send quite big data (same
problem is in timezone description), for me is unacceptable call on each
index call dbus call that take more then second).

Language::Get ($["current": true, "all": false, ...]);

This concentrates the API to a single point suitable for the
permissions, yet it allows you not to waste resources on unused
parts.
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups