=== jalcine is now known as Guest87532 | ||
=== JackyAlcine is now known as jalcine | ||
=== jalcine is now known as jalcine_ | ||
=== jalcine_ is now known as jalcine | ||
pavolzetor | Hi, can anybody look at this? | 18:59 |
---|---|---|
pavolzetor | http://askubuntu.com/questions/115611/dbus-nested-dictionary-in-python | 18:59 |
pavolzetor | I used to use Key: JSON strng | 19:00 |
pavolzetor | but then I need to bind jason to client | 19:00 |
pavolzetor | json | 19:00 |
pavolzetor | I would prefer to send rather nested dicts | 19:00 |
pavolzetor | nope? | 19:30 |
jo-erlend_ | pavolzetor, what kind of keys do you use? | 19:38 |
jo-erlend_ | perhaps the issue is that the value of key2 is a list of dicts and not a string? | 19:39 |
pavolzetor | yep | 19:39 |
pavolzetor | but I do not know how to do ti | 19:39 |
pavolzetor | it | 19:39 |
pavolzetor | last key is list of dicts | 19:39 |
pavolzetor | others are just strings | 19:40 |
jo-erlend_ | but.. Have you seen the answer from James Henstridge? | 19:40 |
pavolzetor | I can do it as key and json strng | 19:40 |
pavolzetor | but I would like to use structure | 19:40 |
pavolzetor | yep | 19:40 |
pavolzetor | not helping | 19:41 |
pavolzetor | I get same error | 19:41 |
jo-erlend_ | can you provide some more details about the code? Might be easier to understand. | 19:41 |
pavolzetor | I haven;t uploaded it to lp, coz it is not even in alpha | 19:41 |
pavolzetor | but I will psot it on pastebin | 19:42 |
jo-erlend_ | better on AskUbuntu... :) | 19:42 |
jo-erlend_ | or if you link there at least. | 19:42 |
pavolzetor | http://paste.ubuntu.com/898291/ | 19:45 |
pavolzetor | is it clearer? | 19:50 |
jo-erlend_ | it fails on line 18 in that example? | 19:54 |
pavolzetor | nono | 19:54 |
pavolzetor | this is just structure | 19:54 |
pavolzetor | @dbus.service.method(interface, | 19:55 |
pavolzetor | in_signature='', out_signature='a{sv}') | 19:55 |
pavolzetor | def GetFeeds(self): | 19:55 |
jo-erlend_ | I meant real code. The structure looks good. | 19:55 |
pavolzetor | return return self.rss.get_feeds() | 19:55 |
pavolzetor | this is method called | 19:55 |
pavolzetor | it is quite big | 19:55 |
pavolzetor | I can post it | 19:55 |
pavolzetor | hold sec | 19:55 |
jo-erlend_ | post it on AskUbuntu? | 19:56 |
pavolzetor | http://ubuntuone.com/1os0eMHfnQgrB6kUnxfRZk | 19:56 |
pavolzetor | key point start at line 87 | 19:57 |
jo-erlend_ | return return? | 20:04 |
jo-erlend_ | line 90. That looks a little suspicious. | 20:04 |
pavolzetor | sorry | 20:09 |
pavolzetor | it is just typo | 20:09 |
pavolzetor | not problem reported | 20:09 |
pavolzetor | when I run my automated tests | 20:10 |
pavolzetor | I always get error | 20:10 |
pavolzetor | to message with signature a{sv}: <type 'exceptions.TypeError'>: Expected a string or unicode object | 20:10 |
pavolzetor | but I have no lcue what signature to use | 20:10 |
pavolzetor | I have googled, but no result | 20:12 |
pavolzetor | I will supply it as strng and fix it later, thanks anyways | 20:24 |
=== jalcine is now known as jalcine_ | ||
=== jalcine_ is now known as Guest21090 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!