[gobject-introspection] g-ir-doc-tool: Ignore for now properties with no known type



commit ccaec1fb6159336e83b4006d84fd86616f6ceab1
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 31b0699..b3a3973 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]