[telepathy-spec/master] Workaround for array_name of external types

Davyd Madeley davyd at madeley.id.au
Fri Mar 27 06:59:14 PDT 2009


---
 tools/specparser.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tools/specparser.py b/tools/specparser.py
index 4ad4226..5afb2f1 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -521,6 +521,14 @@ class SimpleType(DBusType):
         return 'Simple Type'
 
 class ExternalType(DBusType):
+    def __init__(self, parent, namespace, dom):
+        super(ExternalType, self).__init__(parent, namespace, dom)
+
+        # FIXME: until we are able to cross reference external types to learn
+        # about their array names, we're just going to assume they work like
+        # this
+        self.array_name = self.short_name + '_List'
+
     def get_type_name(self):
         return 'External Type'
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list