cctool

A tool for managing contacts and calendars.
git clone https://git.ce9e.org/cctool.git

commit
6ff9a6e5fc2fa387242118cd11e676d9c42fe87f
parent
fa0fcd6fffd913d21275dbc09ccf097aad31e795
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-04-20 21:44
write down available fields

Diffstat

M cctool.py 8 +++++++-

1 files changed, 7 insertions, 1 deletions


diff --git a/cctool.py b/cctool.py

@@ -148,7 +148,10 @@ class ICal(Format):
  148   148 
  149   149 
  150   150 class ABook(Format):
  151    -1 	# TODO read abookrc and convert fields
   -1   151 	fields = ['name', 'nick', 'bday', 'email', 'url', 'tag',
   -1   152 		'address_lines', 'city', 'state', 'zip', 'country',
   -1   153 		'phone', 'workphone', 'mobile',
   -1   154 		'xmpp', 'icq', 'msn', 'twitter', 'pgp']
  152   155 
  153   156 	@classmethod
  154   157 	def load(cls, fh):
@@ -181,6 +184,9 @@ class LDIFParser(ldif.LDIFParser):
  181   184 
  182   185 
  183   186 class LDIF(Format):
   -1   187 	fields = ['dn', 'objeclass', 'modifytimestamp',
   -1   188 		'mail', 'givenName', 'sn', 'cn']
   -1   189 
  184   190 	@classmethod
  185   191 	def load(cls, fh):
  186   192 		if isinstance(ldif, Exception):