[Telepathy-commits] [telepathy-spec/master] Fix up URLs for Errors and Types

Davyd Madeley davyd at madeley.id.au
Mon Mar 23 12:29:23 PDT 2009


---
 tools/specparser.py |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tools/specparser.py b/tools/specparser.py
index a5adb2e..6a86503 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -302,11 +302,11 @@ class Interface (base):
         return self
     
     def get_url (self):
-        return "%s.html" % self.name
+        return '%s.html' % self.name
 
 class Error (base):
     def get_url (self):
-        return '#FIXME'
+        return 'errors.html#%s' % self.name
     
     def get_root_namespace (self):
         return self.namespace
@@ -334,7 +334,12 @@ class DBusType (base):
         return self.__class__.__name__
 
     def get_url (self):
-        return '#FIXME'
+        if isinstance (self.parent, Interface):
+            html = self.parent.get_url ()
+        else:
+            html = 'generic-types.html'
+
+        return '%s#%s' % (html, self.name)
 
 class SimpleType (DBusType):
     def get_type_name (self):
-- 
1.5.6.5




More information about the telepathy-commits mailing list