/srv/irclogs.ubuntu.com/2012/03/24/#ubuntu-app-devel.txt

=== jalcine is now known as Guest87532
=== JackyAlcine is now known as jalcine
=== jalcine is now known as jalcine_
=== jalcine_ is now known as jalcine
pavolzetorHi, can anybody look at this?18:59
pavolzetorhttp://askubuntu.com/questions/115611/dbus-nested-dictionary-in-python18:59
pavolzetorI used to use Key: JSON strng19:00
pavolzetorbut then I need to bind jason to client19:00
pavolzetorjson19:00
pavolzetorI would prefer to send rather nested dicts19:00
pavolzetornope?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
pavolzetoryep19:39
pavolzetorbut I do not know how to do ti19:39
pavolzetorit19:39
pavolzetorlast key is list of dicts19:39
pavolzetorothers are just strings19:40
jo-erlend_but.. Have you seen the answer from James Henstridge?19:40
pavolzetorI can do it as key and json strng19:40
pavolzetorbut I would like to use structure19:40
pavolzetoryep19:40
pavolzetornot helping19:41
pavolzetorI get same error19:41
jo-erlend_can you provide some more details about the code? Might be easier to understand.19:41
pavolzetorI haven;t uploaded it to lp, coz it is not even in alpha19:41
pavolzetorbut I will psot it on pastebin19:42
jo-erlend_better on AskUbuntu... :)19:42
jo-erlend_or if you link there at least.19:42
pavolzetorhttp://paste.ubuntu.com/898291/19:45
pavolzetoris it clearer?19:50
jo-erlend_it fails on line 18 in that example?19:54
pavolzetornono19:54
pavolzetorthis is just structure19: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
pavolzetorthis is method called19:55
pavolzetorit is quite big19:55
pavolzetorI can post it19:55
pavolzetorhold sec19:55
jo-erlend_post it on AskUbuntu?19:56
pavolzetorhttp://ubuntuone.com/1os0eMHfnQgrB6kUnxfRZk19:56
pavolzetorkey point start at line 8719:57
jo-erlend_return return?20:04
jo-erlend_line 90. That looks a little suspicious.20:04
pavolzetorsorry20:09
pavolzetorit is just typo20:09
pavolzetornot problem reported20:09
pavolzetorwhen I run my automated tests20:10
pavolzetorI always get error20:10
pavolzetor to message with signature a{sv}: <type 'exceptions.TypeError'>: Expected a string or unicode object20:10
pavolzetorbut I have no lcue what signature to use20:10
pavolzetorI have googled, but no result20:12
pavolzetorI will supply it as strng and fix it later, thanks anyways20: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!