Re: [FSO] Problem with opimd and Messages

2010-01-15 Thread Sebastian Krzyszkowiak
On Fri, Jan 15, 2010 at 16:45, Bastian Muck  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  wrote:
>>> Hallo list,
>>>
>>> i have a problem with opimd and the messageinterface. First i checked
>>> how many messages are contained in Folder SMS:
>>>
>>> r...@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:
>>>
>>> r...@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:
>>>
>>> r...@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

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [FSO] Problem with opimd and Messages

2010-01-15 Thread Bastian Muck
-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  wrote:
>> Hallo list,
>>
>> i have a problem with opimd and the messageinterface. First i checked
>> how many messages are contained in Folder SMS:
>>
>> r...@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:
>>
>> r...@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:
>>
>> r...@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-


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [FSO] Problem with opimd and Messages

2010-01-15 Thread Sebastian Krzyszkowiak
On Fri, Jan 15, 2010 at 14:37, Bastian Muck  wrote:
> Hallo list,
>
> i have a problem with opimd and the messageinterface. First i checked
> how many messages are contained in Folder SMS:
>
> r...@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:
>
> r...@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:
>
> r...@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.

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[FSO] Problem with opimd and Messages

2010-01-15 Thread Bastian Muck
Hallo list,

i have a problem with opimd and the messageinterface. First i checked
how many messages are contained in Folder SMS:

r...@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:

r...@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:

r...@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

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community