Sorry about that; yes it was tested.<br><br>Tested-by: Samuel Greenfeld <<a href="mailto:greenfeld@laptop.org">greenfeld@laptop.org</a>><br><br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 10:58 AM, Simon Schampijer <span dir="ltr"><<a href="mailto:simon@schampijer.de">simon@schampijer.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 04/15/2011 06:47 PM, Sascha Silbe wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Excerpts from Simon Schampijer's message of Thu Apr 14 19:42:05 +0200 2011:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We only approve channels in the shell and do not claim to handle them<br>
anymore. The handling is now done by the activity (toolkit patch).<br>
More info about approving and handling of channels can be found at [1].<br>
<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This patch does as well only handle sugar activity invitations, invitations<br>
from non-sugar clients will be handled in a separate patch.<br>
</blockquote>
<br>
s/as well // ?<br>
</blockquote>
<br></div>
Yes.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[src/jarabe/model/telepathyclient.py]<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -60,8 +62,17 @@ class TelepathyClient(dbus.service.Object, DBusProperties):<br>
<br>
      def __get_filters_cb(self):<br>
          logging.debug('__get_filters_cb')<br>
-        filter_dict = dbus.Dictionary({}, signature='sv')<br>
-        return dbus.Array([filter_dict], signature='a{sv}')<br>
+<br>
+        filt = {<br>
+            CHANNEL + '.ChannelType': CHANNEL_TYPE_TEXT,<br>
+            CHANNEL + '.TargetHandleType': CONNECTION_HANDLE_TYPE_ROOM,<br>
+            }<br>
+        filter_dict = dbus.Dictionary(filt, signature='sv')<br>
+        filters = dbus.Array([filter_dict], signature='a{sv}')<br>
+<br>
+        logging.debug('__get_filters_cb %r', filters)<br>
+<br>
+        return filters<br>
</blockquote>
<br>
Given that "filt" is non-empty, do we really need the explicit<br>
conversions? I.e. would the following work?<br>
<br>
     def __get_filters_cb(self):<br>
         logging.debug('__get_filters_cb')<br>
         return [{<br>
             CHANNEL + '.ChannelType': CHANNEL_TYPE_TEXT,<br>
             CHANNEL + '.TargetHandleType': CONNECTION_HANDLE_TYPE_ROOM,<br>
             }]<br>
<br>
(The content seems to be static, so it wouldn't make sense to log it.)<br>
</blockquote>
<br></div>
Ok, the logging can go away.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The general approach looks fine. With or without the above changes, but<br>
after you got Samuels Tested-By:<br>
</blockquote>
<br></div>
Sam, did you test this already?<br>
<br>
Regards,<br><font color="#888888">
   Simon<br>
</font></blockquote></div><br>