2008-12-04 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / pyatspi / document.py
index 8b0ccc2..12e2671 100644 (file)
@@ -14,7 +14,7 @@
 
 import interfaces
 from base import BaseProxy
-from factory import add_accessible_class
+from factory import accessible_factory
 
 __all__ = [
            "Document",
@@ -68,7 +68,7 @@ class Document(BaseProxy):
                 func = self.get_dbus_method("getLocale")
                 return func(*args, **kwargs)
 
-# ATTENTION - Register the Application class with the accessible factory.
-add_accessible_class(interfaces.ATSPI_DOCUMENT, Document)
+# Register the accessible class with the factory.
+accessible_factory.register_accessible_class(interfaces.ATSPI_DOCUMENT, Document)
 
 #END----------------------------------------------------------------------------