On Sat, Apr 10, 2010 at 21:19, sam tygier <[email protected]> wrote: > hi > > i have some duplicates in my contact list. i'd like to delete them all and > reimport them using PISI. i can list the dbus methods with: > mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts > > [METHOD] org.freesmartphone.PIM.Contact.Delete() -> () > looks like the right one, but i don't see how to use it. > > for deleting SIM messages i used > mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device > org.freesmartphone.GSM.SIM.DeleteMessage 1 > > but > $ mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts > org.freesmartphone.PIM.Contact.Delete 1 > [ERR]: Need 0 params, supplied 1 > > without a parameter i get > $ mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts > org.freesmartphone.PIM.Contact.Delete > org.freedesktop.DBus.Python.ValueError: 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_contacts.py", > line 316, in Delete > num_id = int(rel_path[1:]) > ValueError: invalid literal for int() with base 10: '' > > please can someone give me a hint in the right direction. > > thanks > > sam
mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts/0 org.freesmartphone.PIM.Contact.Delete mdbus2 -s org.freesmartphone.opimd /org/freesmartphone/PIM/Contacts/1 org.freesmartphone.PIM.Contact.Delete etc. -- Sebastian Krzyszkowiak dos _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
