Mailinglist Archive: yast-devel (246 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <rest-service> master : Use static methods where it is useful
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Tue, 4 Aug 2009 20:19:08 +0200
  • Message-id: <20090804181908.GA28892@xxxxxxxxxxxxx>
* Josef Reidinger <jreidinger@xxxxxxx> [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@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages