Package native :: Package evolution :: Module evolution
[hide private]
[frames] | no frames]

Module evolution

source code

Be at one with Evolution

Classes [hide private]
  EvolutionExportException
  Match
Functions [hide private]
 
getcontacts(folder)
Returns the contacts as a list of string vcards
source code
 
getcontacts_evoexporter()
Get the cards by running evolution-addressbook-export
source code
 
getfsfolders(basedir=evolutionbasedir) source code
 
getspecialfolders()
Return a list of any special folders
source code
 
getfolders() source code
 
pickfolder(selectedid=None, parent=None, title="Select Evolution Folder") source code
 
getfolderfromid(id, default=False)
Return a folder object given the id
source code
 
__findfolder(node, id)
Recursive function to locate a folder, using Match exception to return the found folder
source code
 
_findfolder(id) source code
 
getfoldername(id) source code
 
getfolderid(folder) source code
Variables [hide private]
  userdir = os.path.expanduser("~")
  evolutionpath = "evolution/local"
  evolutionbasedir = os.path.join(userdir, evolutionpath)
  evolutionexporter = {'command': "evolution-addressbook-export"...
Function Details [hide private]

getcontacts(folder)

source code 

Returns the contacts as a list of string vcards

Note that the Windows EOL convention is used

getcontacts_evoexporter()

source code 

Get the cards by running evolution-addressbook-export

Note that this code returns all the contacts as a single string item. It seemed silly to split them apart when the caller then just puts them back together as one string


Variables Details [hide private]

evolutionexporter

Value:
{'command': "evolution-addressbook-export", 'folderid': "<Evolution Ad\
dressbook Exporter>", 'name': "<Evolution Addressbook Exporter>", 'typ\
e': ["address book"]}