[gobject-introspection/gir-docbook-2] g-ir-doc-tool: Ignore for now properties with no known type
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/gir-docbook-2] g-ir-doc-tool: Ignore for now properties with no known type
- Date: Sun, 14 Aug 2011 12:25:36 +0000 (UTC)
commit 3fe6a86a9fd38b27d6a9f7776c8b8e0b7bcf86b8
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date: Sun Aug 14 14:24:31 2011 +0200
g-ir-doc-tool: Ignore for now properties with no known type
giscanner/docbookwriter.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index 5a70e51..dfce478 100644
--- a/giscanner/docbookwriter.py
+++ b/giscanner/docbookwriter.py
@@ -419,6 +419,10 @@ class DocBookWriter(object):
"Properties")
with self._writer.tagcontext("synopsis"):
for entity in page.get_properties():
+ if isinstance(entity.get_ast().type, ast.TypeUnknown):
+ print "Warning: ignoring property '%s' for " \
+ "lack of type" % entity.get_ast().name
+ continue
self._formatter.render_property(entity, link=True)
if page.get_signals():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]