comparison src/bridge/DBus.py @ 1599:e2ed8009e66e

backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:21:56 +0100
parents a3d0cfa5b7a6
children 5b24d6bf5d15
comparison
equal deleted inserted replaced
1598:b144babc2658 1599:e2ed8009e66e
124 # already exist for plugins), probably missing some initialisation, need 124 # already exist for plugins), probably missing some initialisation, need
125 # further investigations 125 # further investigations
126 pass 126 pass
127 127
128 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, 128 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
129 signature='a{ss}ss') 129 signature='a{ss}sis')
130 def actionNew(self, action_data, id, profile): 130 def actionNew(self, action_data, id, security_limit, profile):
131 pass 131 pass
132 132
133 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, 133 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
134 signature='ssa{ss}s') 134 signature='ssa{ss}s')
135 def actionResult(self, answer_type, id, data, profile): 135 def actionResult(self, answer_type, id, data, profile):
588 log.error(_(u"D-Bus is not launched, please see README to see instructions on how to launch it")) 588 log.error(_(u"D-Bus is not launched, please see README to see instructions on how to launch it"))
589 raise BridgeInitError 589 raise BridgeInitError
590 self.dbus_name = dbus.service.BusName(const_INT_PREFIX, self.session_bus) 590 self.dbus_name = dbus.service.BusName(const_INT_PREFIX, self.session_bus)
591 self.dbus_bridge = DbusObject(self.session_bus, const_OBJ_PATH) 591 self.dbus_bridge = DbusObject(self.session_bus, const_OBJ_PATH)
592 592
593 def actionNew(self, action_data, id, profile): 593 def actionNew(self, action_data, id, security_limit, profile):
594 self.dbus_bridge.actionNew(action_data, id, profile) 594 self.dbus_bridge.actionNew(action_data, id, security_limit, profile)
595 595
596 def actionResult(self, answer_type, id, data, profile): 596 def actionResult(self, answer_type, id, data, profile):
597 self.dbus_bridge.actionResult(answer_type, id, data, profile) 597 self.dbus_bridge.actionResult(answer_type, id, data, profile)
598 598
599 def actionResultExt(self, answer_type, id, data, profile): 599 def actionResultExt(self, answer_type, id, data, profile):