[Telepathy-commits] [telepathy-qt4/master] account-manager.py: Don't bother overriding introspection

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jan 7 05:23:29 PST 2009


We don't really need Properties in introspection, and the way I
implemented it was wrong anyway.
---
 tests/account-manager.py |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/tests/account-manager.py b/tests/account-manager.py
index b3b5e7d..3cc3b8d 100644
--- a/tests/account-manager.py
+++ b/tests/account-manager.py
@@ -47,19 +47,6 @@ class AccountManager(Object):
 
         Object.__init__(self, bus, AM_OBJECT_PATH)
 
-    # overridden from Object, to have the Properties in introspection
-    def Introspect(self, **kwargs):
-        xml = super(AccountManager, self).Introspect(**kwargs)
-
-        before, _ = xml.rsplit('</node>', 1)
-
-        return before + """
-            <property name="Interfaces" type="as" access="read"/>
-            <property name="ValidAccounts" type="o" access="read"/>
-            <property name="InvalidAccounts" type="o" access="read"/>
-        </node>
-        """
-
     def _am_props(self):
         return dbus.Dictionary({
             'Interfaces': dbus.Array([], signature='s'),
-- 
1.5.6.5




More information about the Telepathy-commits mailing list