bridge: fixed D-Bus warning in frontend side of bridge

This commit is contained in:
Goffi 2012-11-01 19:52:59 +01:00
commit 20815b3ec5
3 changed files with 11 additions and 2 deletions

View file

@ -20,9 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from bridge_frontend import BridgeFrontend
import dbus, dbus.glib
import dbus
from logging import debug, error
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
const_INT_PREFIX = "org.goffi.SAT" #Interface prefix
const_ERROR_PREFIX = const_INT_PREFIX+".error"
const_OBJ_PATH = '/org/goffi/SAT/bridge'

View file

@ -20,9 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from bridge_frontend import BridgeFrontend
import dbus, dbus.glib
import dbus
from logging import debug, error
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
const_INT_PREFIX = "org.goffi.SAT" #Interface prefix
const_ERROR_PREFIX = const_INT_PREFIX+".error"
const_OBJ_PATH = '/org/goffi/SAT/bridge'

View file

@ -161,6 +161,9 @@ class TextCommands():
def cmd_parrot(self, mess_data, profile):
"""activate Parrot mode between 2 entities, in both directions."""
#TODO: these commands must not be hardcoded, an interface should be made
# to allow plugins to register simple commands like this.
debug("Catched parrot command")
try: