Author: jsuchome Date: Fri Jul 4 13:26:02 2008 New Revision: 48885 URL: http://svn.opensuse.org/viewcvs/yast?rev=48885&view=rev Log: example with more complex map Modified: branches/tmp/lslezak/workshop/scr_dbus/test.ycp Modified: branches/tmp/lslezak/workshop/scr_dbus/test.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/scr_dbus/test.ycp?rev=48885&r1=48884&r2=48885&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/scr_dbus/test.ycp (original) +++ branches/tmp/lslezak/workshop/scr_dbus/test.ycp Fri Jul 4 13:26:02 2008 @@ -2,10 +2,32 @@ import "DBus"; +/* y2security("test for timezone ... %1", DBus::Read(".time")); y2security("test for timezone ... %1", DBus::ReadArg(".time",$[ "format" : "+%z" ])); + +y2internal ("client: %1", WFM::CallFunction ("timezone_raw_client", [])); +*/ + + +/* +import "Misc"; +y2internal ("timezone: %1", + Misc::SysconfigRead (.sysconfig.clock.TIMEZONE, "blah")); +*/ y2security("test ... %1", DBus::ReadArg (".target.ycp", "/tmp/testycp")); +y2internal ("sysconfig %1", DBus::Read (".sysconfig.clock.TIMEZONE")); +y2internal ("sysconfig %1", DBus::Read (".sysconfig.clock.HWCLOCK")); + +map argmap = $[ + "datestring" : "\"--date=now 0sec\"", + "localized" : false +]; +y2internal ("time: %1", DBus::ReadArg (".time", argmap)); + + + } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org