X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pyatspi%2Fregistry.py;h=71ab5509f6d61a0aced3110e3b1de89c65577233;hb=eb000d4b6b399a467736bb8566c0eb47530145f6;hp=2c73cf11f0f89512e6bf7c1a5c191602e616df07;hpb=8ea015764f1509bf78b64065072a3de0d9a8abbe;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/pyatspi/registry.py b/pyatspi/registry.py index 2c73cf1..71ab550 100644 --- a/pyatspi/registry.py +++ b/pyatspi/registry.py @@ -80,10 +80,10 @@ class _Registry(object): app_name = _os.environ["ATSPI_TEST_APP_NAME"] if app_name: - self._appcache = TestApplicationCache(self, self._bus, app_name) + self._app_cache = TestApplicationCache(self, self._bus, app_name) self.dev = _TestDeviceEventController() else: - self._appcache = ApplicationCache(self, self._bus) + self._app_cache = ApplicationCache(self, self._bus) self.dev = DeviceEventController(self._bus) self._event_listeners = {} @@ -110,6 +110,14 @@ class _Registry(object): """ return self + @property + def cache (self): + """ + This is the accessible application cache through which + all accessible objects are accessed. + """ + return self._app_cache + def start(self, async=False, gil=True): """ Enter the main loop to start receiving and dispatching events. @@ -152,7 +160,7 @@ class _Registry(object): @return: Desktop reference @rtype: Accessibility.Desktop """ - return _Desktop(self._appcache) + return _Desktop(self._app_cache) def _callClients(self, register, event): for client in register.keys(): @@ -238,7 +246,7 @@ class _Registry(object): for name in names: new_type = _EventType(name) registered.append((new_type.name, - _event_type_to_signal_reciever(self._bus, self._appcache, client, new_type))) + _event_type_to_signal_reciever(self._bus, self._app_cache, client, new_type))) self._registerFake(self._name_type, self._name_listeners, client, *names) self._registerFake(self._description_type, self._description_listeners, client, *names)