[yast-devel] Re: [yast-commit] <rest-service> master : Use static methods where it is useful
4 Aug
2009
4 Aug
'09
18:19
* Josef Reidinger <jreidinger@suse.cz> [Aug 04. 2009 18:01]:
+ # Creates argument for dbus call which specify what data is requested. + # Available timezones is cached so request it only if it is necessary. + # return:: hash with requested keys + def Systemtime.create_read_question #:doc: + ret = { + "timezone" => "true", + "utcstatus" => "true", + "currenttime" => "true" + } + ret["zones"]= @@timezones.empty? ? "true" : "false" + return ret
Whats wrong with using true and false boolean constants ? Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
5619
Age (days ago)
5619
Last active (days ago)
0 comments
1 participants
participants (1)
-
Klaus Kaempf