Martin Vidner napsal(a):
On Mon, Jun 15, 2009 at 02:27:12PM +0200, josef reidinger wrote:
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
Martin Vidner napsal(a): 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.
Yes, this is possible option, that reduces all getters and setters to two functions which returns corresponding answers. Only limitation I see that return type depends on arguments ( or should be map with same problem) so it needs serialize values to same type (string looks sufficient). Josef -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org