Author: lslezak Date: Thu Jul 3 14:18:48 2008 New Revision: 48816 URL: http://svn.opensuse.org/viewcvs/yast?rev=48816&view=rev Log: - added support for SCR::DBusCaller Modified: branches/tmp/lslezak/workshop/python-bindings/src/YCP.cc Modified: branches/tmp/lslezak/workshop/python-bindings/src/YCP.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/python-bindings/src/YCP.cc?rev=48816&r1=48815&r2=48816&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/python-bindings/src/YCP.cc (original) +++ branches/tmp/lslezak/workshop/python-bindings/src/YCP.cc Thu Jul 3 14:18:48 2008 @@ -835,6 +835,10 @@ "def Execute(*args):\n\t\ return __scr_run(3, *args)"; + string func_dbuscaller = + "def DBusCaller(*args):\n\t\ + return __scr_run(4, *args)"; + // Dictionary of ycp module PyObject *ycp_dict = PyModule_GetDict(Self); @@ -866,6 +870,9 @@ code = PyRun_String(func_execute.c_str(), Py_single_input, new_module_dict, new_module_dict); Py_XDECREF(code); + code = PyRun_String(func_dbuscaller.c_str(), Py_single_input, new_module_dict, new_module_dict); + Py_XDECREF(code); + return true; } @@ -1023,6 +1030,7 @@ // 1 - SCR::Write // 2 - SCR::Dir // 3 - SCR::Execute + // 4 - SCR::DBusCaller int type_scr = -1; YPython *ypython = YPython::yPython (); @@ -1064,6 +1072,10 @@ temp = strcpy(temp, "SCR::Execute"); break; + case 4: + temp = strcpy(temp, "SCR::DBusCaller"); + break; + default: temp = strcpy(temp, "NONE"); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org