Commit 78f0c10c authored by John (J5) Palmieri's avatar John (J5) Palmieri

add dbus type wrappers global scope of methods executed by the exec dialog

parent 15e68d56
import gtk
import dbus
from dfeet import _util
......@@ -61,7 +62,19 @@ class ExecuteMethodDialog:
buf.get_end_iter())
if params:
params = '(' + params + ',)'
args = eval(params)
args = eval(params, {'Boolean':dbus.Boolean,
'Byte':dbus.Byte,
'Int16':dbus.Int16,
'Int32':dbus.Int32,
'Int64':dbus.Int64,
'UInt16':dbus.UInt16,
'UInt32':dbus.UInt32,
'UInt64':dbus.UInt64,
'Double':dbus.Double,
'ObjectPath':dbus.ObjectPath,
'Signature':dbus.Signature,
'String':dbus.String,
'UTF8String':dbus.UTF8String})
result = self.method.dbus_call(self.busname.get_bus(),
self.busname.get_display_name(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment