Dne 18.8.2009 15:12, Klaus Kaempf napsal(a):
I strongly believe leaving the YaPI layer untouched and doing a simle 'YAML.load(...)' in the webservice controller has far lower effort.
+ for YaPI is security for free and using existing DBUS service
Calling YAML::LoadFile from Perl is equally simple as YAML.load in ruby, isn't it
Not quite. By depending on perl:YaML you're adding a new package dependency. We have to be extra careful with WebYaST external dependencies and check for maintenance coverage.
And what about using yast2-ruby-bindings? We could create a small Yast module written in Ruby which reads a Yaml file and returns a Hash or Array (which would be converted to YCPMap or YCPList by the bindings). This approach doesn't need any extra package, YAML is a part of the Ruby standard library. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 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