Hello!<br><div class="gmail_quote">I'm trying to work with opimd for storing phone contacts.<br>Here what I do to add new contact:<br><br>obj = dbus.SessionBus().get_object('org.freesmartphone.opimd', '/org/freesmartphone/PIM/Contacts')<br>
contacts = dbus.Interface(obj, 'org.freesmartphone.PIM.Contacts')<br>contact = {'name':'test_name' , 'number':'+48888691184', '<a href="mailto:email%27%3A%27prishelec@gmail.com" target="_blank">email':'prishelec@gmail.com</a>')<br>
contacts.Add(contact);<br><br>What I do to retrieve contact knowing phone number:<br><br>qw = {'number':'+48888691184'}<br>query_path = contacts.Query( qw )<br>queries_obj = dbus.SessionBus().get_object('org.freesmartphone.opimd', query_path)<br>
query_int = dbus.Interface(queries_obj, 'org.freesmartphone.PIM.ContactQuery')<br>query_int.Skip(query_int.GetResultCount() -1)<br>print query_int.GetResult()<br><br>So now I have some questions:<br>1. How to use regular expressions in queries?<br>
2. How to edit entries in contact? All I can do is to add new contact and query some stuff.<br>3. If I have say names like Leonti, Leontig, Leontd and so on, after querying for Leontig I get all of them. Is that intended?<br>
4. Is it possible to delete contact? If so how do I do that.<br><br>Hope for understanding.<br><font color="#888888"><br>Leonti<br>
</font></div><br>