Summary: | Work out what to do about 16-bit types | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Simon McVittie <smcv> |
Component: | tp-spec | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | major | ||
Priority: | medium | Keywords: | patch |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.freedesktop.org/~jonny/telepathy-spec/log/?h=16bit-types-20776 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 23148 |
Description
Simon McVittie
2009-03-20 11:40:48 UTC
(I vote we just defer this yet more until we move to GDBus where it will hopefully fix itself.) Actually, we're not moving to GDBus yet and this is trivially "fixed" if we just s/q/u/g. At the moment this is only used for IP socket ports, so, no harm done. Let's do this for next. I will cook a patch. Yes, here it is. Czech it out. Yes, please do, so this doesn't take another 3 years. + if self.dbus_type == 'q': + raise UntypedItem("Node referred to by '%r' has type 'q' which is unsupported " + "by dbus-glib; use 'u' instead" % self) Please complain about int16 too (I think it's 'n'). I think "if 'n' in self.dbus_type or 'q' in self.dbus_type" would be a better check, to catch things like an a(sq) not qualified by a tp:type too. (In reply to comment #4) > Please complain about int16 too (I think it's 'n'). Done. > I think "if 'n' in self.dbus_type or 'q' in self.dbus_type" would be a better > check, to catch things like an a(sq) not qualified by a tp:type too. Good idea. I made these changes and pushed my updated commits. Thanks for the review. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.