Partial re-refactor of the accessibles registration code.
[platform/core/uifw/at-spi2-atk.git] / pyatspi / constants.py
index ccef0fb..eab731c 100644 (file)
@@ -45,6 +45,8 @@ CACHE_EVENTS = ['object:property-change:accessible-name',
                 'object:property-change:accessible-role',
                 'object:property-change:accessible-parent']
 
+CACHE_PROPERTIES = ""
+
 # Dictionary used to correct the bug of not being able to register for all the
 # subevents given only an AT-SPI event class (i.e. first part of the event
 # name) keys are event names having subevents and values are the subevents
@@ -139,20 +141,4 @@ EVENT_TREE = {
     ['focus:']
 }
 
-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 Accessibility import *