Make getRelationType return a RelationType enum.
authorWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 10:38:20 +0000 (06:38 -0400)
committerWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 10:51:41 +0000 (06:51 -0400)
pyatspi/relation.py

index 6d1ede0..ef952c2 100644 (file)
@@ -116,8 +116,7 @@ class Relation(object):
                 """
                 @return the RelationType of this Relation.
                 """
-                # TODO Return a relation enum type
-                return self._type
+                return RelationType(self._type)
 
         def getRelationTypeName(self):
                 """