Author: jsuchome Date: Fri Jul 4 10:27:54 2008 New Revision: 48867 URL: http://svn.opensuse.org/viewcvs/yast?rev=48867&view=rev Log: example for reading YCP value Added: branches/tmp/lslezak/workshop/scr_dbus/testycp Modified: branches/tmp/lslezak/workshop/scr_dbus/Makefile branches/tmp/lslezak/workshop/scr_dbus/test.ycp Modified: branches/tmp/lslezak/workshop/scr_dbus/Makefile URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/scr_dbus/Makefile?rev=48867&r1=48866&r2=48867&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/scr_dbus/Makefile (original) +++ branches/tmp/lslezak/workshop/scr_dbus/Makefile Fri Jul 4 10:27:54 2008 @@ -5,3 +5,4 @@ cp yast_service.py /usr/sbin cp DBusValueToPythonValue.py ${libdir}/python/site-packages cp DBus.py /usr/share/YaST2/modules + cp testycp /tmp 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=48867&r1=48866&r2=48867&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/scr_dbus/test.ycp (original) +++ branches/tmp/lslezak/workshop/scr_dbus/test.ycp Fri Jul 4 10:27:54 2008 @@ -2,13 +2,10 @@ import "DBus"; -/* y2security("test for timezone ... %1", DBus::Read(".time")); y2security("test for timezone ... %1", DBus::ReadArg(".time",$[ "format" : "+%z" ])); -*/ -y2security("test ... %1", DBus::ReadArg (".target.ycp", "/usr/share/YaST2/data/testycp")); +y2security("test ... %1", DBus::ReadArg (".target.ycp", "/tmp/testycp")); -y2security("test ... %1", DBus::ReadArg (".target.string", "/usr/share/YaST2/data/teststring")); } Added: branches/tmp/lslezak/workshop/scr_dbus/testycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/scr_dbus/testycp?rev=48867&view=auto ============================================================================== --- branches/tmp/lslezak/workshop/scr_dbus/testycp (added) +++ branches/tmp/lslezak/workshop/scr_dbus/testycp Fri Jul 4 10:27:54 2008 @@ -0,0 +1,6 @@ +$[ + "a" : "A", + "b" : $[ + "abc" : "ABC" + ] +] -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org