[next] telepathy-spec: specparser: raise an exception if 'q' or 'n' is used
Jonny Lamb
jonny at kemper.freedesktop.org
Thu Jun 7 06:41:34 PDT 2012
Module: telepathy-spec
Branch: next
Commit: fb863701a96235b51491b60f928bb8162042e406
URL: http://cgit.freedesktop.org/telepathy/telepathy-spec/commit/?id=fb863701a96235b51491b60f928bb8162042e406
Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date: Thu May 10 17:43:11 2012 +0100
specparser: raise an exception if 'q' or 'n' is used
16-bit types are unsupported by dbus-glib.
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
tools/specparser.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/specparser.py b/tools/specparser.py
index fb432f0..a2791d5 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -575,6 +575,10 @@ class Typed(Base):
if self.dbus_type == '':
raise UntypedItem("Node referred to by '%s' has no type" % dom.toxml())
+ if 'n' in self.dbus_type or 'q' in self.dbus_type:
+ raise UntypedItem("Node referred to by '%r' has type '%s' which is unsupported "
+ "by dbus-glib; use 'u' instead" % (self, self.dbus_type))
+
def get_type(self):
return self.get_spec().lookup_type(self.type)
More information about the telepathy-commits
mailing list