[FSO] Problem with opimd and Messages

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Fri Jan 15 16:48:23 CET 2010


On Fri, Jan 15, 2010 at 16:45, Bastian Muck <bastian.muck at gmx.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 15.01.2010 16:19, schrieb Sebastian Krzyszkowiak:
>> On Fri, Jan 15, 2010 at 14:37, Bastian Muck <bastian.muck at gmx.de> wrote:
>>> Hallo list,
>>>
>>> i have a problem with opimd and the messageinterface. First i checked
>>> how many messages are contained in Folder SMS:
>>>
>>> root at om-gta02 ~/test $ mdbus -s org.freesmartphone.opimd
>>> /org/freesmartphone/PIM/Messages/Folders/2 GetMessageCount
>>> 9
>>>
>>> So there should be 9 SMS. ( In fact there are just 7, but two of them
>>> are double-sms)
>>> Then I tried to get some of them:
>>>
>>> root at om-gta02 ~/test $ mdbus -s org.freesmartphone.opimd
>>> /org/freesmartphone/PIM/Messages/Folders/2 GetMessagePaths 1 5
>>> [   '/org/freesmartphone/PIM/Messages/1',
>>>    '/org/freesmartphone/PIM/Messages/2',
>>>    '/org/freesmartphone/PIM/Messages/3',
>>>    '/org/freesmartphone/PIM/Messages/4',
>>>    '/org/freesmartphone/PIM/Messages/5']
>>>
>>> Ok, the first five are no problem. But as you can see, number 6 fails:
>>>
>>> root at om-gta02 ~/test $ mdbus -s org.freesmartphone.opimd
>>> /org/freesmartphone/PIM/Messages/Folders/2 GetMessagePaths 1 6
>>> /org/freesmartphone/PIM/Messages/Folders/2: GetMessagePaths failed:
>>> org.freedesktop.DBus.Python.TypeError (Traceback (most recent call last):
>>>  File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in
>>> _message_cb
>>>    retval = candidate_method(self, *args, **keywords)
>>>  File
>>>
> "/usr/lib/python2.6/site-packages/framework/subsystems/opimd/pimd_messages.py",
>>> line 254, in GetMessagePaths
>>>    result.append(message['Path'])
>>> TypeError: 'NoneType' object is unsubscriptable
>>> )
>>>
>>> Even if I just want to get only the path of message 6 it fails. Any idea
>>> what I do wrong?
>>>
>>> Greetings Bastian
>>
>> Folders are completely not tested, and as you just noticed: they don't
>> work yet. I'll maybe look at them soon, but that's rather on low
>> priority.
>>
> How do you access sms then?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iD8DBQFLUI22lYiDScJJ+7QRAvTlAKC2x3b+XNLWVgFYafO9pUZt1x0bGgCffCO3
> fUbRGAAPEi38BB76g9c+PNk=
> =Yv+V
> -----END PGP SIGNATURE-----

Normally, using queries, not those strange things called folders :P

Look at opimd-cli, it can be useful to understand how to use opimd interfaces.

-- 
Sebastian Krzyszkowiak
dos



More information about the community mailing list