Pypoom is a module that lets you manipulate Pocket Outlook objects in
PythonCE.
Pypoom consist in a COM interface, automatically generated by comtypes, and a pythonic wrapper over that interface.
Requirements :
Getting pypoom :
Pypoom is hosted at the vensterce project (
http://sourceforge.net/projects/vensterce∞)
Using pypoom :
Here is an example of pypoom usage :
This tiny script will capitalize the first and last name of all your contacts.
import pypoom
app = pypoom.Application() # instantiate the Application object
contacts_folder = app.get_folder(pypoom.contacts) # get the chosen Folder object
for contact in contacts_folder : # Access items with regular python indexing, slicing and iteration operations
print 'Before : %s, %s' %(contact.FirstName, contact.LastName)
contact.FirstName = contact.FirstName.capitalize()
contact.LastName = contact.LastName.capitalize()
contact.save() # Commit the changes to the database
print 'After : %s, %s' %(contact.FirstName, contact.LastName)
There are no comments on this page. [Add comment]