+"""
+Empathy Experience:
+ Can't call
+ When first started, reports all read conversations when some might have been read
+ When first started, reports all of an SMS conversation even though some has been reported previously
+ Still leaking one of two contact lists
+"""
+
import logging
import gobject
import telepathy
import constants
+import gtk_toolbox
import connection
def __init__(self, shutdown_func=None):
telepathy.server.ConnectionManager.__init__(self, constants._telepathy_implementation_name_)
+ # self._protos is from super
self._protos[constants._telepathy_protocol_name_] = connection.TheOneRingConnection
self._on_shutdown = shutdown_func
_moduleLogger.info("Connection manager created")
+ @gtk_toolbox.log_exception(_moduleLogger)
def GetParameters(self, proto):
"""
For org.freedesktop.telepathy.ConnectionManager
@returns the mandatory and optional parameters for creating a connection
"""
if proto not in self._protos:
- raise telepathy.NotImplemented('unknown protocol %s' % proto)
+ raise telepathy.errors.NotImplemented('unknown protocol %s' % proto)
result = []
ConnectionClass = self._protos[proto]
- mandatoryParameters = ConnectionClass.MANDATORY_PARAMETERS
- optionalParameters = ConnectionClass.OPTIONAL_PARAMETERS
- defaultParameters = ConnectionClass.PARAMETER_DEFAULTS
+ mandatoryParameters = ConnectionClass._mandatory_parameters
+ optionalParameters = ConnectionClass._optional_parameters
+ defaultParameters = ConnectionClass._parameter_defaults
for parameterName, parameterType in mandatoryParameters.iteritems():
flags = telepathy.CONN_MGR_PARAM_FLAG_REQUIRED
Overrides telepathy.server.ConnectionManager
"""
result = telepathy.server.ConnectionManager.disconnected(self, conn)
- gobject.timeout_add(5000, self.shutdown)
+ gobject.timeout_add(5000, self._shutdown)
def quit(self):
"""
connection.Disconnect()
_moduleLogger.info("Connection manager quitting")
+ @gtk_toolbox.log_exception(_moduleLogger)
def _shutdown(self):
if (
self._on_shutdown is not None and