4662: Unable to add more than one name format
svn: r16682
This commit is contained in:
parent
42ff4d9326
commit
cdf024c6dc
@ -265,10 +265,7 @@ class NameDisplay(object):
|
|||||||
Name.FN : self._raw_fn,
|
Name.FN : self._raw_fn,
|
||||||
}
|
}
|
||||||
|
|
||||||
#remove data from previous database
|
for (num, name, fmt_str, act) in formats:
|
||||||
self.name_formats = {}
|
|
||||||
for tformats in self.STANDARD_FORMATS + formats:
|
|
||||||
(num, name, fmt_str, act) = tformats
|
|
||||||
func = self._format_fn(fmt_str)
|
func = self._format_fn(fmt_str)
|
||||||
func_raw = raw_func_dict.get(num, self._format_raw_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)
|
self.name_formats[num] = (name, fmt_str, act, func, func_raw)
|
||||||
|
Loading…
Reference in New Issue
Block a user