Infer object name from 'name' property
[gregoa/zavai.git] / src / zavai
index 897dd7f15f2707dd43a9f85bf02ac9e6d6e2993e..d425b328cacc128b5d67d8753d8aff700cae0db1 100755 (executable)
--- a/src/zavai
+++ b/src/zavai
@@ -61,10 +61,10 @@ dbus_system_bus = dbus.SystemBus()
 registry = zavai.Registry()
 
 # Register main factories
-registry.register("dbus.system_bus", dbus_system_bus)
-registry.register("conf", conf)
-registry.register_factory("app", zavai.Zavai)
-registry.register_factory("gps", zavai.GPS)
+registry.register(dbus_system_bus, "dbus.system_bus")
+registry.register(conf, "conf")
+registry.register_factory(zavai.Zavai, "app")
+registry.register_factory(zavai.GPS, "gps")
 
 # Load plugins
 zavai.info("Loading plugins")