Commit bca755ce authored by Sriram Karra's avatar Sriram Karra

Bugfix: Parse the affix array properly from BBDB databases.

parent 5fc2a8d7
##
## Created : Fri Apr 06 19:08:32 IST 2012
## Last Modified : Fri Jul 13 00:21:35 IST 2012
## Last Modified : Fri Jul 13 07:58:04 IST 2012
##
## Copyright (C) 2012 Sriram Karra <karra.etc@gmail.com>
##
......@@ -165,6 +165,8 @@ class BBContact(Contact):
try:
affix = pr['affix']
if affix and affix != 'nil':
str_re = self.get_store().get_str_re()
affix = re.findall(str_re, affix)
self.set_suffix(chompq(affix[0]))
except KeyError, e:
## FIXME: There should be a better way to handle the format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment