- commit
- 002469eed1b8226f375a7087a1621422eafd2c9c
- parent
- 6ff9a6e5fc2fa387242118cd11e676d9c42fe87f
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2014-04-20 21:45
check for available fields in abook
Diffstat
| M | cctool.py | 7 | ++++++- |
1 files changed, 6 insertions, 1 deletions
diff --git a/cctool.py b/cctool.py
@@ -169,7 +169,12 @@ class ABook(Format): 169 169 section = unicode(i) 170 170 cp.add_section(section) 171 171 for key in item:172 -1 cp.set(section, key, item.join(key))-1 172 if key in cls.fields: -1 173 cp.set(section, key, item.join(key)) -1 174 elif key in ['mail']: -1 175 cp.set(section, 'email', item.join(key)) -1 176 elif key in ['cn']: -1 177 cp.set(section, 'name', item.join(key)) 173 178 i += 1 174 179 cp.write(fh) 175 180