Mercurial > libervia-backend
comparison src/bridge/bridge_constructor/dbus_frontend_template.py @ 535:790be337cc41
bridge: fixed D-Bus warning in frontend side of bridge
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Nov 2012 19:52:59 +0100 |
parents | 2a072735e459 |
children | 0bb2e0d1c878 |
comparison
equal
deleted
inserted
replaced
534:07f369ed3988 | 535:790be337cc41 |
---|---|
18 You should have received a copy of the GNU Affero General Public License | 18 You should have received a copy of the GNU Affero General Public License |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 """ | 20 """ |
21 | 21 |
22 from bridge_frontend import BridgeFrontend | 22 from bridge_frontend import BridgeFrontend |
23 import dbus, dbus.glib | 23 import dbus |
24 from logging import debug, error | 24 from logging import debug, error |
25 | |
26 from dbus.mainloop.glib import DBusGMainLoop | |
27 DBusGMainLoop(set_as_default=True) | |
25 | 28 |
26 const_INT_PREFIX = "org.goffi.SAT" #Interface prefix | 29 const_INT_PREFIX = "org.goffi.SAT" #Interface prefix |
27 const_ERROR_PREFIX = const_INT_PREFIX+".error" | 30 const_ERROR_PREFIX = const_INT_PREFIX+".error" |
28 const_OBJ_PATH = '/org/goffi/SAT/bridge' | 31 const_OBJ_PATH = '/org/goffi/SAT/bridge' |
29 const_CORE_SUFFIX = ".core" | 32 const_CORE_SUFFIX = ".core" |