Active Topics

 


Reply
Thread Tools
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#1
How to write simplest and fastest python script to check for a phone number if it exists in the n900 addressbook at all?

Here's what i came up so far; I don't know if it will works or not since i just started learning python, any suggestion will be greatly appreciated.

Code:
import evolution.ebook as e

phonenumber="18007775555"

def check_phone_number(number):
  query = e.EBookQuery.from_string("(exists \"number\")")
  if query == None:
     return No
  return Yes

print check_phone_number(phonenumber)
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#2
Try to look at:
http://wiki.maemo.org/PyMaemo/Access...ython_bindings
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 

The Following User Says Thank You to m750 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 00:43.