[yast-devel] [webYaST] Bug 551276 - remove Scr.execute from services plugin
![](https://seccdn.libravatar.org/avatar/c6230e4ce683f6f38991d06b0df892bc.jpg?s=120&d=mm&r=g)
Hi! We are still undecided which way to go in bug 551276. Picture: we need a way to call (from rest service) a custom script which is written in custom config file. Currently we are parsing the config file directly in rest service plugin and calling the script with Scr.execute. We have these options so far: a) use YaPI::SERVICES and call the script from here. The problem is, to parse yml file, we'd need perl-YAML package, which is not on SLE11, but on SDK. b) use YaPI::SERVICES, and from perl file, call ruby module which would care for parsing yml file. But for using ruby at this place, we'd need yast2-ruby-bindings, which also is not on SLE11. Could we include in as a part of webYaST? c) write new dbus service. We'd need ruby-dbus package: also not part of SLE11, but included in webYaST repo anyway. Comparing to a+b, this would mean more code, and new service which may need new security audit. d) do not use YML as config file, but something parsable from Perl without additional requires. d2) use file called custom_services.yml, and parse it directly from Perl. This means, it could not be true yml, only minimal subset. There's ongoing discussion in bug 551276, but maybe more people can find the right solution. 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
![](https://seccdn.libravatar.org/avatar/c6230e4ce683f6f38991d06b0df892bc.jpg?s=120&d=mm&r=g)
On Tuesday 03 of November 2009 13:15:59 Jiří Suchomel wrote:
Hi! We are still undecided which way to go in bug 551276.
... any proposals? My personal preference is including yast2-ruby-bindings in WebYaST repository and go the YaPI + ruby way (I've just tested it and it is working, at least). 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
![](https://seccdn.libravatar.org/avatar/c6230e4ce683f6f38991d06b0df892bc.jpg?s=120&d=mm&r=g)
Hi Ciaran! We have a situation where we might need to include yet another package in webYaST project (see discussion http://lists.opensuse.org/yast-devel/2009-11/msg00020.html). The package would be yast2-ruby-bindings, which is not present in SLE11, but we have it on SDK. It's GPLv2 package, no encryption libraries, and we (Novell) created the package and are maintaining it. Would it be still possible? 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
participants (1)
-
Jiří Suchomel