[Telepathy-commits] [telepathy-spec/master] Don't display AwkwardTelepathyProperty in the docs
Davyd Madeley
davyd at madeley.id.au
Wed Mar 25 08:19:09 PDT 2009
---
doc/templates/devhelp.devhelp2 | 1 +
doc/templates/interface.html | 4 ++--
doc/templates/style.css | 8 ++++++--
tools/specparser.py | 8 +++-----
4 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/doc/templates/devhelp.devhelp2 b/doc/templates/devhelp.devhelp2
index 13a9beb..af327fa 100644
--- a/doc/templates/devhelp.devhelp2
+++ b/doc/templates/devhelp.devhelp2
@@ -6,6 +6,7 @@
#end for
<sub name="Generic Types" link="generic-types.html"/>
<sub name="Errors" link="errors.html"/>
+ <sub name="Full Index" link="fullindex.html"/>
</chapters>
<functions>
#for $obj in $spec.everything.values() + $spec.types.values() + $spec.errors.values()
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index f0c77a4..ac25804 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -286,14 +286,14 @@
#end if
#if $interface.tpproperties
- <div class="outset tpproperties property">
+ <div class="outset tpproperties tpproperty">
<a name="tpproperties"></a>
<h1>Telepathy Properties</h1>
<div>
Accessed using the org.freedesktop.Telepathy.Properties interface.
</div>
#for $property in $interface.tpproperties
- <div class="inset property">
+ <div class="inset tpproperty">
<a name="$property.name"></a>
<span class="permalink">(<a href="$property.get_url()">Permalink</a>)</span>
<h2>
diff --git a/doc/templates/style.css b/doc/templates/style.css
index f656fbe..a6b2646 100644
--- a/doc/templates/style.css
+++ b/doc/templates/style.css
@@ -90,12 +90,16 @@ div.properties {
background-color: #ad7fa8;
}
+div.property {
+ border: 1px solid #75507b;
+}
+
div.tpproperties {
background-color: #999999;
}
-div.property {
- border: 1px solid #75507b;
+div.tpproperty {
+ border: 1px solid: #333333;
}
div.types {
diff --git a/tools/specparser.py b/tools/specparser.py
index 6de11b3..1795328 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -211,7 +211,7 @@ class Base(object):
n.setAttribute('title', o.get_title())
def get_title(self):
- return '%s %s' % (self.__class__.__name__, self.name)
+ return '%s %s' % (self.get_type_name(), self.name)
def __repr__(self):
return '%s(%s)' % (self.__class__.__name__, self.name)
@@ -334,7 +334,8 @@ class Property(Typed):
return 'Write only'
class AwkwardTelepathyProperty(Typed):
- pass
+ def get_type_name(self):
+ return 'Telepathy Property'
class Arg(Typed):
DIRECTION_IN, DIRECTION_OUT, DIRECTION_UNSPECIFIED = range(3)
@@ -507,9 +508,6 @@ class DBusType(Base):
def get_breakdown(self):
return ''
- def get_title(self):
- return "%s %s" % (self.get_type_name(), self.name)
-
def get_url(self):
if isinstance(self.parent, Interface):
html = self.parent.get_url()
--
1.5.6.5
More information about the telepathy-commits
mailing list