Hey Dan,
thanks for your reply. I had a look at the source of PISI and extracted
the necessary lines. If I execute a python script like
#!/usr/bin/env python
import dbus
#-- access dbus
bus = dbus.SystemBus()
device_obj = bus.get_object("org.freesmartphone.ogsmd",
"/org/freesmartphone/GSM/Device")
device_iface = dbus.Interface(device_obj, 'org.freesmartphone.GSM.SIM')
device_iface.StoreEntry('contacts', 94, '00000Hallo', '+1234567890')
It works flawlessly. It seems that mdbus has some issues here. Thanks
for the hint, for me personally it does not matter, if i use a shell or
python script as long as I can import my 100 contacts easily.
Regards,
Alex
Dan Staley wrote:
> I wanted to go through and add the international prefix and area code
> to a bunch of my contacts...so I just exported them to a vcf file with
> pisi, ran some regex replaces with vim, and re-synced.
> Worked great...and I got to sync my contacts into google at the same
> time! =)
> Perhaps you could use a similar method if you are wanting to add stuff
> after your sim change?
>
> -Dan Staley
>
> On Sat, Aug 29, 2009 at 6:58 AM, Alexander Fell <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi,
>
> Maybe I am too stupid. However I will be glad, if someone could point
> out my mistake. I don't see it currently.
>
> I want to store a contact through dbus, so I call
> mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
> org.freesmartphone.GSM.SIM.StoreEntry "contacts" 5 "the name"
> s'+1234567890'
>
> It works, but when I do a
>
> mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
> org.freesmartphone.GSM.SIM.RetrievePhonebook "contacts"
> it shows the number without the "+" sign:
> [...]
> (5, 'the name', '1234567890')]
>
> So, how do i get the sign? Putting the sign in front of each contact
> after a SIM card change, could be a days job :D
>
> Thanks in advance
>
> Alex
> _______________________________________________
> Shr-User mailing list
> [email protected] <mailto:[email protected]>
> http://lists.shr-project.org/mailman/listinfo/shr-user
>
>
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user