Partial re-refactor of the accessibles registration code.
[platform/core/uifw/at-spi2-atk.git] / pyatspi / __init__.py
index be6f0d5..510e65b 100644 (file)
 #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-#import registry
+__version__ = (1, 9, 0)
 
-#Registry = registry.Registry(reg)
-#registry.Registry = Registry
-#del registry
+import registry
+Registry = registry._Registry()
+registry._Registry = Registry
+del registry
 
-def setCacheLevel(level):
-       pass
-
-def getCacheLevel():
-       return None
-
-def clearCache():
-       pass
-
-def printCache():
-       print "Print cache function is deprecated";
-
-import other
-
-# Build a dictionary mapping state values to names based on the prefix of the
-# enum constants.
-STATE_VALUE_TO_NAME = dict(((value, name[6:].lower().replace('_', ' ')) 
-                            for name, value 
-                            in vars(other).items()
-                            if name.startswith('STATE_')))
-
-# Build a dictionary mapping relation values to names based on the prefix of 
-# the enum constants.
-RELATION_VALUE_TO_NAME = dict(((value, name[9:].lower().replace('_', ' ')) 
-                               for name, value 
-                               in vars(other).items()
-                               if name.startswith('RELATION_')))
-
-del other
-
-from constants import *
-
-from base import *
-from other import *
-
-from test import *
-
-#from utils import *
+import constants
+from Accessibility import *