Hello!<br><div class="gmail_quote">I&#39;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(&#39;org.freesmartphone.opimd&#39;, &#39;/org/freesmartphone/PIM/Contacts&#39;)<br>


contacts = dbus.Interface(obj, &#39;org.freesmartphone.PIM.Contacts&#39;)<br>contact = {&#39;name&#39;:&#39;test_name&#39; , &#39;number&#39;:&#39;+48888691184&#39;, &#39;<a href="mailto:email%27%3A%27prishelec@gmail.com" target="_blank">email&#39;:&#39;prishelec@gmail.com</a>&#39;)<br>


contacts.Add(contact);<br><br>What I do to retrieve contact knowing phone number:<br><br>qw = {&#39;number&#39;:&#39;+48888691184&#39;}<br>query_path = contacts.Query( qw )<br>queries_obj =  dbus.SessionBus().get_object(&#39;org.freesmartphone.opimd&#39;, query_path)<br>


query_int = dbus.Interface(queries_obj, &#39;org.freesmartphone.PIM.ContactQuery&#39;)<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>