Mailinglist Archive: opensuse-commit (1097 mails)

< Previous Next >
commit telepathy-butterfly for openSUSE:Factory
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 21 Jan 2010 12:40:41 +0100
  • Message-id: <20100121114041.7B27A202A6@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package telepathy-butterfly for
openSUSE:Factory
checked in at Thu Jan 21 12:40:41 CET 2010.



--------
--- telepathy-butterfly/telepathy-butterfly.changes 2009-11-14
01:38:55.000000000 +0100
+++
/mounts/work_src_done/STABLE/telepathy-butterfly/telepathy-butterfly.changes
2010-01-20 12:39:44.000000000 +0100
@@ -1,0 +2,12 @@
+Wed Jan 20 12:41:00 CET 2010 - vuntz@xxxxxxxxxxxx
+
+- Update to version 0.5.4:
+ + Enhancements:
+ - Implement the InitialAudio and InitialVideo properties when
+ requesting a StreamedMedia channel (fdo#25396)
+ - Advertise text capabilities of contacts (fdo#24878)
+ - Experimental MailNotification interface (fdo#25995)
+ + Fixes:
+ - Fix the callback when refusing a contact (fdo#24965)
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
telepathy-butterfly-0.5.3.tar.bz2

New:
----
telepathy-butterfly-0.5.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ telepathy-butterfly.spec ++++++
--- /var/tmp/diff_new_pack.mnj3GV/_old 2010-01-21 12:40:24.000000000 +0100
+++ /var/tmp/diff_new_pack.mnj3GV/_new 2010-01-21 12:40:24.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package telepathy-butterfly (Version 0.5.3)
+# spec file for package telepathy-butterfly (Version 0.5.4)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@


Name: telepathy-butterfly
-Version: 0.5.3
+Version: 0.5.4
Release: 1
License: GPLv2+
Summary: MSN (butterfly) connection manager for Telepathy

++++++ telepathy-butterfly-0.5.3.tar.bz2 -> telepathy-butterfly-0.5.4.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/butterfly/capabilities.py
new/telepathy-butterfly-0.5.4/butterfly/capabilities.py
--- old/telepathy-butterfly-0.5.3/butterfly/capabilities.py 2009-10-21
14:59:00.000000000 +0200
+++ new/telepathy-butterfly-0.5.4/butterfly/capabilities.py 2010-01-19
17:21:46.000000000 +0100
@@ -23,6 +23,7 @@
import papyon
import papyon.event

+from butterfly.util.decorator import async
from butterfly.handle import ButterflyHandleFactory

__all__ = ['ButterflyCapabilities']
@@ -55,6 +56,33 @@
def on_contact_client_capabilities_changed(self, contact):
self._update_capabilities(contact)

+ # papyon.event.AddressBookEventInterface
+ def on_addressbook_contact_added(self, contact):
+ """When we add a contact in our contact list, add the
+ capabilities to create text channel to the contact"""
+ if contact.is_member(contact.Membership.FORWARD):
+ handle = ButterflyHandleFactory(self._conn_ref(), 'contact',
+ contact.account, contact.network_id)
+ self.add_text_capabilities([handle])
+
+ def add_text_capabilities(self, contacts_handles):
+ """Add the create capability for text channel to these contacts."""
+ ret = []
+ for handle in contacts_handles:
+ ctype = telepathy.CHANNEL_TYPE_TEXT
+ if handle in self._caps:
+ old_gen, old_spec = self._caps[handle][ctype]
+ else:
+ old_gen = 0
+ old_spec = 0
+ new_gen = old_gen
+ new_gen |= telepathy.CONNECTION_CAPABILITY_FLAG_CREATE
+
+ diff = (int(handle), ctype, old_gen, new_gen, old_spec, old_spec)
+ ret.append(diff)
+
+ self.CapabilitiesChanged(ret)
+
def _update_capabilities(self, contact):
handle = ButterflyHandleFactory(self, 'contact',
contact.account, contact.network_id)
@@ -88,3 +116,16 @@
spec_caps |= telepathy.CHANNEL_MEDIA_CAPABILITY_VIDEO

return gen_caps, spec_caps
+
+ @async
+ def _populate_capabilities(self):
+ """ Add the capability to create text channels to all contacts in our
+ contacts list."""
+ handles = set()
+ for contact in self.msn_client.address_book.contacts:
+ if contact.is_member(papyon.Membership.FORWARD):
+ handle = ButterflyHandleFactory(self, 'contact',
+ contact.account, contact.network_id)
+ handles.add(handle)
+ self.add_text_capabilities(handles)
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/telepathy-butterfly-0.5.3/butterfly/channel/contact_list.py
new/telepathy-butterfly-0.5.4/butterfly/channel/contact_list.py
--- old/telepathy-butterfly-0.5.3/butterfly/channel/contact_list.py
2009-10-14 16:33:04.000000000 +0200
+++ new/telepathy-butterfly-0.5.4/butterfly/channel/contact_list.py
2010-01-19 17:17:20.000000000 +0100
@@ -312,8 +312,8 @@
contact = handle.contact
ab = self._conn.msn_client.address_book
if contact.is_member(papyon.Membership.PENDING):
- ab.decline_contact_invitation(contact, False, done_cb=finished_cb,
- failed_cb=finished_cb)
+ ab.decline_contact_invitation(contact, False,
done_cb=(finished_cb,),
+ failed_cb=(finished_cb,))
elif contact.is_member(papyon.Membership.ALLOW):
ab.disallow_contact(contact, done_cb=(finished_cb,),
failed_cb=(finished_cb,))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/butterfly/channel/media.py
new/telepathy-butterfly-0.5.4/butterfly/channel/media.py
--- old/telepathy-butterfly-0.5.3/butterfly/channel/media.py 2009-10-16
18:17:31.000000000 +0200
+++ new/telepathy-butterfly-0.5.4/butterfly/channel/media.py 2010-01-19
17:21:46.000000000 +0100
@@ -28,7 +28,9 @@
from butterfly.handle import ButterflyHandleFactory
from butterfly.media import ButterflySessionHandler

-from telepathy.interfaces import CHANNEL_INTERFACE, CHANNEL_INTERFACE_GROUP
+from telepathy.interfaces import CHANNEL_INTERFACE, CHANNEL_INTERFACE_GROUP,\
+ CHANNEL_TYPE_STREAMED_MEDIA
+from telepathy.constants import MEDIA_STREAM_TYPE_AUDIO,
MEDIA_STREAM_TYPE_VIDEO

__all__ = ['ButterflyMediaChannel']

@@ -87,6 +89,22 @@
self.GroupFlagsChanged(flags, 0)
self.__add_initial_participants()

+ types = []
+ initial_audio_prop = CHANNEL_TYPE_STREAMED_MEDIA + '.InitialAudio'
+ initial_video_prop = CHANNEL_TYPE_STREAMED_MEDIA + '.InitialVideo'
+ self._add_immutables({
+ 'InitialAudio': CHANNEL_TYPE_STREAMED_MEDIA,
+ 'InitialVideo': CHANNEL_TYPE_STREAMED_MEDIA,
+ })
+
+ if props.get(initial_audio_prop, False):
+ types.append(MEDIA_STREAM_TYPE_AUDIO)
+ if props.get(initial_video_prop, False):
+ types.append(MEDIA_STREAM_TYPE_VIDEO)
+
+ if types:
+ self.RequestStreams(handle, types)
+
def Close(self):
logger.info("Channel closed by client")
self._call.end()
@@ -207,7 +225,9 @@
#StreamHandler event
def on_stream_error(self, handler, error, message):
self.StreamError(handler.id, error, message)
- self._call.media_session.remove_stream(handler.stream)
+ # TODO: properly remove the stream without ending the whole
+ # call unless it was the last stream of the session.
+ self._call.end()

#StreamHandler event
def on_stream_state_changed(self, handler, state):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/telepathy-butterfly-0.5.3/butterfly/Connection_Interface_Mail_Notification.py

new/telepathy-butterfly-0.5.4/butterfly/Connection_Interface_Mail_Notification.py
---
old/telepathy-butterfly-0.5.3/butterfly/Connection_Interface_Mail_Notification.py
1970-01-01 01:00:00.000000000 +0100
+++
new/telepathy-butterfly-0.5.4/butterfly/Connection_Interface_Mail_Notification.py
2010-01-19 17:26:02.000000000 +0100
@@ -0,0 +1,128 @@
+# -*- coding: utf-8 -*-
+# Generated from the Telepathy spec
+""" Copyright (C) 2007 Collabora Limited
+
+ This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+"""
+
+import dbus.service
+
+
+class ConnectionInterfaceMailNotification(dbus.service.Interface):
+ """\
+ An interface to support receiving notifications about a e-mail
+ account associated with this connection. It is intended that the
+ connection manager has the means to provide necessary
+ information (URL, method, POST data) so that the client is
+ able to open the user's inbox and possibly individual messages without
+ having to re-authenticate. To use this interface, a client must first
+ subscribe using the Subscribe method.
+
+ When unread e-mails arrive into the into or unread e-mails are marked
+ read or deleted the
+ UnreadMailsChanged signal
+ will be emitted with the new value of
+ UnreadMailCount, an array
+ of new or modified mails and the list of removed e-mail unique IDs.
+ To open the web base mail client for the inbox folder or a specific
+ mail client must call RequestInboxURL
+ or RequestMailURL. Those methods
+ will do proper actions to retreive the information and provide
+ authentication free URL to the requested Web client interface.
+
+
+ Some protocol may not be able to provide a list of unread e-mails
+ but may provide some information about the messages received. On
+ such protocols, the MailsReceived
+ signal will also be emitted, with information about the e-mails.
+ The protocol does not keep track of any of this information.
+
+ """
+
+ def __init__(self):
+
self._interfaces.add('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT')
+
+
@dbus.service.method('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
in_signature='', out_signature='')
+ def Subscribe(self):
+ """
+ This method subscribes a client to the notification interface. This
+ should be called if a client wants to get notified of incoming
+ e-mails. Before anyone subscribes to the interface, the connection
+ manager should try to minimized memory usage and network traffic as
+ much as possible. The Control Manager must detect client disconnection
+ (e.g. in case of crash) and free resources that are no longer required.
+
+ """
+ raise NotImplementedError
+
+
@dbus.service.method('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
in_signature='', out_signature='')
+ def Unsubscribe(self):
+ """
+ This method unsubscribes a client from the notification interface. This
+ should called if a client no longer wants tot get notified of incoming
+ e-mails. When all the client has been Unsubscribed, the connection
manager
+ should free all non-required information and reduce network traffic.
It must
+ be possible to call Subscribe later.
+
+ """
+ raise NotImplementedError
+
+
@dbus.service.method('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
in_signature='', out_signature='(sua(ss))')
+ def RequestInboxURL(self):
+ """
+ This method create and return a URL and optionnal POST data that allow
+ openning the Inbox folder of your Web mail account. This URL may
+ contains token with short life time. Thus, a client should not reuse it
+ and request a new URL whenever it is needed.
+
+ We are not using properties here because the tokens may not be shared
+ between clients and that network may be required to obtain the
+ information that leads to authentication free Web access.
+
+
+ """
+ raise NotImplementedError
+
+
@dbus.service.method('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
in_signature='ss', out_signature='(sua(ss))')
+ def RequestMailURL(self, id, url_data):
+ """
+ This method create and return a URL and optionnal POST data that allow
+ openning specific mail of your Web mail account. Refer to
+ RequestInboxURL.
+
+ """
+ raise NotImplementedError
+
+
@dbus.service.signal('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
signature='aa{sv}')
+ def MailsReceived(self, mails):
+ """
+ Emitted when new e-mails messages arrive to the inbox associated with
+ this connection. This signal is used for protocol that are not able
+ to maintained UnreadMails list but
+ receives real-time notification about newly arrived e-mails.
+
+ """
+ pass
+
+
@dbus.service.signal('org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT',
signature='uaa{sv}as')
+ def UnreadMailsChanged(self, count, mails_added, mails_removed):
+ """
+ Emitted when UnreadMails or
+ UnreadMailCount have changed.
+
+ """
+ pass
+
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/telepathy-butterfly-0.5.3/butterfly/connection_manager.py
new/telepathy-butterfly-0.5.4/butterfly/connection_manager.py
--- old/telepathy-butterfly-0.5.3/butterfly/connection_manager.py
2009-10-14 16:33:04.000000000 +0200
+++ new/telepathy-butterfly-0.5.4/butterfly/connection_manager.py
2009-12-28 23:01:40.000000000 +0100
@@ -48,25 +48,27 @@

result = []
connection_class = self._protos[proto]
+ secret_parameters = connection_class._secret_parameters
mandatory_parameters = connection_class._mandatory_parameters
optional_parameters = connection_class._optional_parameters
default_parameters = connection_class._parameter_defaults

for parameter_name, parameter_type in mandatory_parameters.iteritems():
- param = (parameter_name,
- telepathy.CONN_MGR_PARAM_FLAG_REQUIRED,
- parameter_type,
- '')
+ flags = telepathy.CONN_MGR_PARAM_FLAG_REQUIRED
+ if parameter_name in secret_parameters:
+ flags |= telepathy.CONN_MGR_PARAM_FLAG_SECRET
+ param = (parameter_name, flags, parameter_type, '')
result.append(param)

for parameter_name, parameter_type in optional_parameters.iteritems():
+ flags = 0
+ default = ''
+ if parameter_name in secret_parameters:
+ flags |= telepathy.CONN_MGR_PARAM_FLAG_SECRET
if parameter_name in default_parameters:
- param = (parameter_name,
- telepathy.CONN_MGR_PARAM_FLAG_HAS_DEFAULT,
- parameter_name,
- default_parameters[parameter_name])
- else:
- param = (parameter_name, 0, parameter_name, '')
+ flags |= telepathy.CONN_MGR_PARAM_FLAG_HAS_DEFAULT
+ default = default_parameters[parameter_name]
+ param = (parameter_name, flags, parameter_type, default)
result.append(param)

return result
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/butterfly/connection.py
new/telepathy-butterfly-0.5.4/butterfly/connection.py
--- old/telepathy-butterfly-0.5.3/butterfly/connection.py 2009-10-25
08:35:38.000000000 +0100
+++ new/telepathy-butterfly-0.5.4/butterfly/connection.py 2010-01-19
17:26:02.000000000 +0100
@@ -32,6 +32,7 @@
from butterfly.capabilities import ButterflyCapabilities
from butterfly.contacts import ButterflyContacts
from butterfly.channel_manager import ButterflyChannelManager
+from butterfly.mail_notification import ButterflyMailNotification

__all__ = ['ButterflyConnection']

@@ -45,10 +46,16 @@
ButterflyAvatars,
ButterflyCapabilities,
ButterflyContacts,
+ ButterflyMailNotification,
papyon.event.ClientEventInterface,
papyon.event.InviteEventInterface,
papyon.event.OfflineMessagesEventInterface):

+ _secret_parameters = set([
+ 'password',
+ 'http-proxy-password',
+ 'https-proxy-password'
+ ])
_mandatory_parameters = {
'account' : 's',
'password' : 's'
@@ -100,6 +107,7 @@
ButterflyAvatars.__init__(self)
ButterflyCapabilities.__init__(self)
ButterflyContacts.__init__(self)
+ ButterflyMailNotification.__init__(self)
papyon.event.ClientEventInterface.__init__(self, self._msn_client)
papyon.event.InviteEventInterface.__init__(self, self._msn_client)
papyon.event.OfflineMessagesEventInterface.__init__(self,
self._msn_client)
@@ -245,6 +253,7 @@
telepathy.CHANNEL_TYPE_CONTACT_LIST, handle, False)
self._channel_manager.channel_for_props(props, signal=True)
elif state == papyon.event.ClientState.OPEN:
+ self._populate_capabilities()
self.StatusChanged(telepathy.CONNECTION_STATUS_CONNECTED,
telepathy.CONNECTION_STATUS_REASON_REQUESTED)
presence = self._initial_presence
@@ -259,6 +268,8 @@
self._presence_changed(ButterflyHandleFactory(self, 'self'),
self._client.profile.presence,
self._client.profile.personal_message)
+ if self._client.profile.profile['EmailEnabled'] == '1':
+ self.enable_mail_notification_interface()
elif state == papyon.event.ClientState.CLOSED:
self.StatusChanged(telepathy.CONNECTION_STATUS_DISCONNECTED,
self.__disconnect_reason)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/telepathy-butterfly-0.5.3/butterfly/mail_notification.py
new/telepathy-butterfly-0.5.4/butterfly/mail_notification.py
--- old/telepathy-butterfly-0.5.3/butterfly/mail_notification.py
1970-01-01 01:00:00.000000000 +0100
+++ new/telepathy-butterfly-0.5.4/butterfly/mail_notification.py
2010-01-19 17:26:02.000000000 +0100
@@ -0,0 +1,157 @@
+# telepathy-butterfly - an MSN connection manager for Telepathy
+#
+# Copyright (C) 2010 Collabora Ltd.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+from base64 import b64encode, b64decode
+from butterfly.Connection_Interface_Mail_Notification import
ConnectionInterfaceMailNotification
+from string import join
+import dbus.service
+import logging
+import papyon
+import telepathy
+import telepathy.constants
+
+
+__all__ = ['ButterflyMailNotification']
+
+logger = logging.getLogger('Butterfly.MailNotification')
+
+
+# Interface name
+CONN_IFACE_MAIL_NOTIFICATION = \
+ 'org.freedesktop.Telepathy.Connection.Interface.MailNotification.DRAFT'
+
+# Mail_Notification_Flags (bitfield/set of flags, 0 for none)
+MAIL_NOTIFICATION_HAS_PROP_UNREADMAILCOUNT = 1
+MAIL_NOTIFICATION_HAS_PROP_UNREADMAILS = 2
+MAIL_NOTIFICATION_HAS_SIGNAL_MAILSRECEIVED = 4
+
+# HTTP_Method
+HTTP_METHOD_GET = 0
+HTTP_METHOD_POST = 1
+LAST_HTTP_METHOD = 1
+
+# Mail_Type
+MAIL_TYPE_SINGLE = 0
+MAIL_TYPE_THREAD = 1
+LAST_MAIL_TYPE = 1
+
+
+class ButterflyMailNotification(
+ telepathy.server.DBusProperties,
+ ConnectionInterfaceMailNotification,
+ papyon.event.MailboxEventInterface):
+
+ def __init__(self):
+ logger.debug("Initialized")
+ telepathy.server.DBusProperties.__init__(self)
+ ConnectionInterfaceMailNotification.__init__(self)
+ # FIXME MSN Account is not always attached to an e-mail account. The
+ # tp-python generator should allow sub-class initialisation without
+ # adding the interface to the list. (see bug #26044)
+ self._interfaces.remove(CONN_IFACE_MAIL_NOTIFICATION)
+ papyon.event.MailboxEventInterface.__init__(self, self.msn_client)
+
+ self._implement_property_get(CONN_IFACE_MAIL_NOTIFICATION,
+ {'Capabilities': lambda: self.capabilities,
+ 'UnreadMailCount': lambda: self.unread_mail_count,})
+
+
+ def enable_mail_notification_interface(self):
+ """Add MailNotification to the list of interfaces so
+ Connection.GetInterfaces() returns it when called. This should be
+ called before the connection is fully connected and only if the MSN
+ Account support e-mail notification (see 'EmailEnabled' feild in
+ client profile)."""
+
+ self._interfaces.add(CONN_IFACE_MAIL_NOTIFICATION)
+
+
+ @property
+ def capabilities(self):
+ return MAIL_NOTIFICATION_HAS_PROP_UNREADMAILCOUNT \
+ | MAIL_NOTIFICATION_HAS_SIGNAL_MAILSRECEIVED
+
+
+ @property
+ def unread_mail_count(self):
+ return self.msn_client.mailbox.unread_mail_count
+
+
+ def Subscribe(self):
+ # Papyon does not have enable/disable feature on mail tracking and
+ # does not use more memory while monitoring may. Thus we can safely
+ # stub subscribe/unsubscribe method.
+ pass
+
+
+ def Unsubscribe(self):
+ pass
+
+
+ @dbus.service.method(CONN_IFACE_MAIL_NOTIFICATION,
+ in_signature='', out_signature='(sua(ss))',
+ async_callbacks=('_success', '_error'))
+ def RequestInboxURL(self, _success, _error):
+ def got_url(post_url, form_dict):
+ post_data = []
+ for key in form_dict:
+ post_data += ((key, form_dict[key]),)
+ _success((post_url, HTTP_METHOD_POST, post_data))
+
+ self.msn_client.mailbox.request_inbox_url(got_url)
+
+ def RequestMailURL(self, id, url_data):
+ # Unserialize POST Data from base64 making sure it's good data.
+ # Data is of the form <key>:<value>[&<key>:<value>]* where key
+ # and value are base64 encoded.
+ post_data = []
+ for data in url_data.split('&'):
+ tmp_data = data.split(':')
+ if len(tmp_data) is not 2:
+ raise telepathy.errors.InvalidArgument
+ try:
+ final_data = (b64decode(tmp_data[0]), b64decode(tmp_data[1]))
+ except Exception, e:
+ raise telepathy.errors.InvalidArgument
+ post_data += [final_data]
+ return (id, HTTP_METHOD_POST, post_data)
+
+
+ # papyon.event.MailboxEventInterface
+ def on_mailbox_new_mail_received(self, mail_message):
+ logger.debug("New Mail " + str(mail_message))
+
+ # Serialize with POST data in base64 as decribed in previous function.
+ url_data = []
+ for key, value in mail_message.form_data.items():
+ url_data += [b64encode(key) + ':' + b64encode(value)]
+
+ mail = {'id': mail_message.post_url,
+ 'type': MAIL_TYPE_SINGLE,
+ 'url_data': join(url_data,'&'),
+ 'senders': [(mail_message.name, mail_message.address)],
+ 'subject': mail_message._subject}
+
+ self.MailsReceived([mail])
+
+
+ # papyon.event.MailboxEventInterface
+ def on_mailbox_unread_mail_count_changed(self, unread_mail_count,
+ initial=False):
+ logger.debug("Unread Mail Count Changed " + str(unread_mail_count))
+ self.UnreadMailsChanged(unread_mail_count, [], [])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/data/butterfly.manager
new/telepathy-butterfly-0.5.4/data/butterfly.manager
--- old/telepathy-butterfly-0.5.3/data/butterfly.manager 2009-10-14
16:33:04.000000000 +0200
+++ new/telepathy-butterfly-0.5.4/data/butterfly.manager 2009-12-28
23:01:40.000000000 +0100
@@ -5,16 +5,16 @@

[Protocol msn]
param-account = s required
-param-password = s required
+param-password = s required secret
param-server = s
param-port = q
param-http-proxy-server = s
param-http-proxy-port = q
param-http-proxy-username = s
-param-http-proxy-password = s
+param-http-proxy-password = s secret
param-https-proxy-server = s
param-https-proxy-port = q
param-https-proxy-username = s
-param-https-proxy-password = s
+param-https-proxy-password = s secret
default-server = messenger.hotmail.com
default-port = 1863
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/NEWS
new/telepathy-butterfly-0.5.4/NEWS
--- old/telepathy-butterfly-0.5.3/NEWS 2009-10-25 19:49:54.000000000 +0100
+++ new/telepathy-butterfly-0.5.4/NEWS 2010-01-19 17:34:22.000000000 +0100
@@ -1,3 +1,17 @@
+telepathy-butterfly-0.5.4 (19-01-2010)
+======================================
+
+The "Awesome Xmas presnt" release.
+
+Enhancements:
+ * Implement the InitialAudio and InitialVideo properties when requesting a
+ StreamedMedia channel (fd.o #25396)
+ * Advertise text capabilities of contacts (fd.o #24878)
+ * Experimental MailNotification interface (fd.o #25995)
+
+Fixes:
+ * Fix the callback when refusing a contact (fd.o #24965)
+
telepathy-butterfly-0.5.3 (25-10-2009)
======================================

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telepathy-butterfly-0.5.3/wscript
new/telepathy-butterfly-0.5.4/wscript
--- old/telepathy-butterfly-0.5.3/wscript 2009-10-25 19:49:54.000000000
+0100
+++ new/telepathy-butterfly-0.5.4/wscript 2010-01-19 17:35:36.000000000
+0100
@@ -1,6 +1,6 @@
#!/usr/bin/env python

-VERSION = '0.5.3'
+VERSION = '0.5.4'
APPNAME = 'telepathy-butterfly'

srcdir = '.'


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages