|
=== jalcine is now known as Guest87532 |
|
=== JackyAlcine is now known as jalcine |
|
=== jalcine is now known as jalcine_ |
|
=== jalcine_ is now known as jalcine |
|
[18:59] <pavolzetor> Hi, can anybody look at this? |
|
[18:59] <pavolzetor> http://askubuntu.com/questions/115611/dbus-nested-dictionary-in-python |
|
[19:00] <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:30] <pavolzetor> nope? |
|
[19:38] <jo-erlend_> pavolzetor, what kind of keys do you use? |
|
[19:39] <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:40] <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:41] <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:42] <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:45] <pavolzetor> http://paste.ubuntu.com/898291/ |
|
[19:50] <pavolzetor> is it clearer? |
|
[19:54] <jo-erlend_> it fails on line 18 in that example? |
|
[19:54] <pavolzetor> nono |
|
[19:54] <pavolzetor> this is just structure |
|
[19:55] <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:56] <jo-erlend_> post it on AskUbuntu? |
|
[19:56] <pavolzetor> http://ubuntuone.com/1os0eMHfnQgrB6kUnxfRZk |
|
[19:57] <pavolzetor> key point start at line 87 |
|
[20:04] <jo-erlend_> return return? |
|
[20:04] <jo-erlend_> line 90. That looks a little suspicious. |
|
[20:09] <pavolzetor> sorry |
|
[20:09] <pavolzetor> it is just typo |
|
[20:09] <pavolzetor> not problem reported |
|
[20:10] <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:12] <pavolzetor> I have googled, but no result |
|
[20:24] <pavolzetor> I will supply it as strng and fix it later, thanks anyways |
|
=== jalcine is now known as jalcine_ |
|
=== jalcine_ is now known as Guest21090 |
|
|