[Telepathy-commits] [telepathy-python/master] spec-to-python.xsl: don't generate interface having the causes-havoc attribute
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Dec 24 04:19:54 PST 2008
---
tools/spec-to-python.xsl | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tools/spec-to-python.xsl b/tools/spec-to-python.xsl
index 2405930..4e0983c 100644
--- a/tools/spec-to-python.xsl
+++ b/tools/spec-to-python.xsl
@@ -47,7 +47,9 @@ class <xsl:value-of select="translate(/node/@name, '/_', '')"/>(<xsl:value-of se
pass
</xsl:template>
- <xsl:template match="/"># Generated from the Telepathy spec
+ <xsl:template match="/">
+ <xsl:if test="node/interface[not(@tp:causes-havoc)]">
+# Generated from the Telepathy spec
"""<xsl:for-each select="node/tp:copyright">
<xsl:apply-templates/><xsl:text>
</xsl:text></xsl:for-each>
@@ -58,6 +60,7 @@ import dbus.service
<xsl:apply-templates select="node/interface"/>
+ </xsl:if>
</xsl:template>
</xsl:stylesheet>
--
1.5.6.5
More information about the Telepathy-commits
mailing list