[Sugar-devel] [PATCH sugar] Anly approve and not handle channels in the shell, part of OLPC #10738

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Fri May 20 17:08:13 EDT 2011


Excerpts from Simon Schampijer's message of Thu Apr 28 21:18:31 +0200 2011:
> On 04/15/2011 06:47 PM, Sascha Silbe wrote:
> [...]
> > Given that "filt" is non-empty, do we really need the explicit
> > conversions? I.e. would the following work?

> No, we really need the explicit conversion:
[error message that happens otherwise]

The reason for this was recently mentioned [1] on the dbus mailing list:

>>> Because dbus-python guesses the dictionary type by looking at the first
>>> key-value pair which is 's' and 's' in this case.

>>> You can use dbus.Dictionary({'name': 'test', 'id': 10}, signature='sv')
>>> to explicitly tell it what type the dictionary should have.


I already gave my Ack and can push the patch for you if you want.

Sascha

[1] http://permalink.gmane.org/gmane.comp.freedesktop.dbus/13936
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110520/68ef26de/attachment.pgp>


More information about the Sugar-devel mailing list