4662: Unable to add more than one name format

svn: r16682
This commit is contained in:
Michiel Nauta 2011-02-20 18:29:59 +00:00
parent 42ff4d9326
commit cdf024c6dc

View File

@ -265,10 +265,7 @@ class NameDisplay(object):
Name.FN : self._raw_fn,
}
#remove data from previous database
self.name_formats = {}
for tformats in self.STANDARD_FORMATS + formats:
(num, name, fmt_str, act) = tformats
for (num, name, fmt_str, act) in formats:
func = self._format_fn(fmt_str)
func_raw = raw_func_dict.get(num, self._format_raw_fn(fmt_str))
self.name_formats[num] = (name, fmt_str, act, func, func_raw)