Re: opimd: a bug (?) and how to list missed calls?

2009-09-07 Thread Laszlo KREKACS
On Mon, Sep 7, 2009 at 12:58 AM, Sebastian
Krzyszkowiak wrote:
> And I don't know how to send dictionaries by mdbus ;(

I dont know, just asking: Is dbus suited to pass large data through the
bus? Ie. it is not better practice, that you save to a file, and give only
the filename to the client?

Maybe it is slower. Just cant believe, that dbus is built for large
data transfer.

Best regards,
 Laszlo

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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread Sebastian Krzyszkowiak
On 9/6/09, arne anka  wrote:
>> I am unsure if you want to use mdbus so as to get exact function calls
>> to make in your app or not...
>
> i am not talking about an app but an easy way to acces that kind of
> information.
> in the wiki there's a big fat warning against opimd-cli and no download
> link. and as i wrote i didn't find the sources either.
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>

Warning is for users who want to use it as daily phone suite. And
sources are browsable in http://git.shr-project.org/ (without /repo
subdir)

And I don't know how to send dictionaries by mdbus ;(

-- 
Sebastian Krzyszkowiak
dos

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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread arne anka
> I am unsure if you want to use mdbus so as to get exact function calls
> to make in your app or not...

i am not talking about an app but an easy way to acces that kind of  
information.
in the wiki there's a big fat warning against opimd-cli and no download  
link. and as i wrote i didn't find the sources either.

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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread Vikas Saurabh
> following
> http://lists.openmoko.org/pipermail/community/2009-September/054567.html:
>
> mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Calls/Query
> org.freesmartphone.PIM.Calls.Query {'Answered':0}
> ERROR:dbus.connection:Unable to set arguments ('{Answered:0}',) according
> to signature u'a{sv}': : string indices must
> be integers
>
> but
>
> mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Calls/Query
> org.freesmartphone.PIM.Calls.Query {}
> /org/freesmartphone/PIM/Calls/Query: Query ->
> /org/freesmartphone/PIM/Calls/Queries/1

I am unsure if you want to use mdbus so as to get exact function calls
to make in your app or not...but
 opimd-cli ca query Answered 0 Direction in
works as expected.

--Vikas

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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread arne anka
following  
http://lists.openmoko.org/pipermail/community/2009-September/054567.html:

mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Calls/Query  
org.freesmartphone.PIM.Calls.Query {'Answered':0}
ERROR:dbus.connection:Unable to set arguments ('{Answered:0}',) according  
to signature u'a{sv}': : string indices must  
be integers

but

mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Calls/Query  
org.freesmartphone.PIM.Calls.Query {}
/org/freesmartphone/PIM/Calls/Query: Query ->   
/org/freesmartphone/PIM/Calls/Queries/1

???


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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread arne anka
>> ... org.freesmartphone.PIM.Calls.Query({'Direction':'in', 'Answered':0})

is there a comprehensive listing of these aparams somewhere?

>> In libphone-utils git repo, src/python directory IIRC.

libphone0-utils is in pkg-fso.alioth.debian.org, but version  
libphone-utils0 0.1+git20090801-3 -- is that ok or has something changed  
too much?

> BTW - opimd-utils was created as set of test, example scripts. Look at
> them, opimd-cli can be really helpful to understand how to use opimd.

did it stop eating cats now?
if so, where can i get it? the git repo at  
http://git.shr-project.org/repo/opimd-utils.git/ does not have that nice  
html interface that allows downloading a snapshot as tar ball.

> It isn't as hard as it looks ;)

well, i figured out that much, though i think it is much different from  
the way other frameworkd features work.
if i understand right, basically opimd creates a data structure  
(iterator?) in ram and returns the address. one has to iterate that  
structure and dispose of it afterwards. right?


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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread Sebastian Krzyszkowiak
On 9/6/09, Sebastian Krzyszkowiak  wrote:
> On 9/6/09, arne anka  wrote:
>> i fetched the frameworkd source tar ball from
>> http://www.freesmartphone.org/sources/ and build a primitive deb package,
>> because i try to figure out opimd.
>> but i still get the same errors as with the old version:
>> for a lot of methods i get an exception and
>>
>> num_id = int(rel_path[1:])
>> ValueError: invalid literal for int() with base 10: ''
>>
>> seems like rel_path is always an empty string -- and it probably is not
>> supposed to be so.
>> so, where should that string come from?
>
> It's supposed to be. You have to use for instance
> '/org/freesmartphone/PIM/Contacts/0' dbus path while referring to
> contact with ID 0.
>
>> another question: how do i get a list of missed calls?
>> there's no method with a name looking like it would do that (but a lot
>> with names not really comprehensible to me: Skip, Rewind, GetCallPaths,
>> Dispose). same thing for messages and contacts.
>
> In pseudocode:
> querypath = org.freesmartphone.PIM.Calls.Query({'Direction':'in',
> 'Answered':0})
> //querypath is now something like /org/freesmartphone/PIM/Calls/Queries/0
> // on that path:
> print
> org.freesmartphone.PIM.CallQuery.GetMultipleResults(org.freesmartphone.PIM.CallQuery.GetResultCount)
> OR:
> for i from 0 to org.freesmartphone.PIM.CallQuery.GetResultCount:
>   print org.freesmartphone.PIM.CallQuery.GetResult()
>
>> oh, and btw: where does one get python-phoneutils?
>
> In libphone-utils git repo, src/python directory IIRC.
>
>> ___
>> Openmoko community mailing list
>> community@lists.openmoko.org
>> http://lists.openmoko.org/mailman/listinfo/community
>>
>
>
> --
> Sebastian Krzyszkowiak
> dos
>

BTW - opimd-utils was created as set of test, example scripts. Look at
them, opimd-cli can be really helpful to understand how to use opimd.
It isn't as hard as it looks ;)

-- 
Sebastian Krzyszkowiak
dos

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


Re: opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread Sebastian Krzyszkowiak
On 9/6/09, arne anka  wrote:
> i fetched the frameworkd source tar ball from
> http://www.freesmartphone.org/sources/ and build a primitive deb package,
> because i try to figure out opimd.
> but i still get the same errors as with the old version:
> for a lot of methods i get an exception and
>
> num_id = int(rel_path[1:])
> ValueError: invalid literal for int() with base 10: ''
>
> seems like rel_path is always an empty string -- and it probably is not
> supposed to be so.
> so, where should that string come from?

It's supposed to be. You have to use for instance
'/org/freesmartphone/PIM/Contacts/0' dbus path while referring to
contact with ID 0.

> another question: how do i get a list of missed calls?
> there's no method with a name looking like it would do that (but a lot
> with names not really comprehensible to me: Skip, Rewind, GetCallPaths,
> Dispose). same thing for messages and contacts.

In pseudocode:
querypath = org.freesmartphone.PIM.Calls.Query({'Direction':'in', 'Answered':0})
//querypath is now something like /org/freesmartphone/PIM/Calls/Queries/0
// on that path:
print 
org.freesmartphone.PIM.CallQuery.GetMultipleResults(org.freesmartphone.PIM.CallQuery.GetResultCount)
OR:
for i from 0 to org.freesmartphone.PIM.CallQuery.GetResultCount:
  print org.freesmartphone.PIM.CallQuery.GetResult()

> oh, and btw: where does one get python-phoneutils?

In libphone-utils git repo, src/python directory IIRC.

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


-- 
Sebastian Krzyszkowiak
dos

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


opimd: a bug (?) and how to list missed calls?

2009-09-06 Thread arne anka
i fetched the frameworkd source tar ball from  
http://www.freesmartphone.org/sources/ and build a primitive deb package,  
because i try to figure out opimd.
but i still get the same errors as with the old version:
for a lot of methods i get an exception and

num_id = int(rel_path[1:])
ValueError: invalid literal for int() with base 10: ''

seems like rel_path is always an empty string -- and it probably is not  
supposed to be so.
so, where should that string come from?

another question: how do i get a list of missed calls?
there's no method with a name looking like it would do that (but a lot  
with names not really comprehensible to me: Skip, Rewind, GetCallPaths,  
Dispose). same thing for messages and contacts.

oh, and btw: where does one get python-phoneutils?

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