"""
For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
"""
- raise telepathy.NotImplemented("Cannot remove a stream")
+ raise telepathy.errors.NotImplemented("Cannot remove a stream")
@gtk_toolbox.log_exception(_moduleLogger)
def RequestStreamDirection(self, stream, streamDirection):
@note Since streams are short lived, not bothering to implement this
"""
_moduleLogger.info("A request was made to change the stream direction")
- raise telepathy.NotImplemented("Cannot change directions")
+ raise telepathy.errors.NotImplemented("Cannot change directions")
@gtk_toolbox.log_exception(_moduleLogger)
def RequestStreams(self, contact, streamTypes):
"""
for streamType in streamTypes:
if streamType != telepathy.constants.MEDIA_STREAM_TYPE_AUDIO:
- raise telepathy.NotImplemented("Audio is the only stream type supported")
+ raise telepathy.errors.NotImplemented("Audio is the only stream type supported")
contactId, contactNumber = handle.ContactHandle.from_handle_name(contact.name)
@gtk_toolbox.log_exception(_moduleLogger)
def Send(self, messageType, text):
if messageType != telepathy.CHANNEL_TEXT_MESSAGE_TYPE_NORMAL:
- raise telepathy.NotImplemented("Unhandled message type: %r" % messageType)
+ raise telepathy.errors.NotImplemented("Unhandled message type: %r" % messageType)
self._conn.session.backend.send_sms(self._otherHandle.phoneNumber, text)
chan = self._listChannels[handle]
except KeyError, e:
if handle.get_type() != telepathy.HANDLE_TYPE_LIST:
- raise telepathy.NotImplemented("Only server lists are allowed")
+ raise telepathy.errors.NotImplemented("Only server lists are allowed")
_moduleLogger.debug("Requesting new contact list channel")
chan = channel.contact_list.create_contact_list_channel(self._connRef(), handle)
chan = self._textChannels[handle]
except KeyError, e:
if handle.get_type() != telepathy.HANDLE_TYPE_CONTACT:
- raise telepathy.NotImplemented("Only Contacts are allowed")
+ raise telepathy.errors.NotImplemented("Only Contacts are allowed")
_moduleLogger.debug("Requesting new text channel")
chan = channel.text.TextChannel(self._connRef(), handle)
chan = self._callChannels[handle]
except KeyError, e:
if handle.get_type() != telepathy.HANDLE_TYPE_NONE:
- raise telepathy.NotImplemented("Using deprecated means to create a call")
+ raise telepathy.errors.NotImplemented("Using deprecated means to create a call")
_moduleLogger.debug("Requesting new call channel")
chan = channel.call.CallChannel(self._connRef(), handle)
@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]
"""
@returns {Contact: {Location Type: Location}}
"""
- raise telepathy.NotImplemented("Yet")
+ raise telepathy.errors.NotImplemented("Yet")
@gtk_toolbox.log_exception(_moduleLogger)
def RequestLocation(self, contact):
"""
@returns {Location Type: Location}
"""
- raise telepathy.NotImplemented("Yet")
+ raise telepathy.errors.NotImplemented("Yet")
@gtk_toolbox.log_exception(_moduleLogger)
def SetLocation(self, location):