diff --git a/ChangeLog b/ChangeLog index c11b75a4b..0237120e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-08-01 Alex Roitman + * src/NameDisplay.py: Rename local var id -> num + to avoid collission with the builtin function id(). * src/GrampsDb/_GrampsBSDDB.py (set_name_group_mapping): Use transaction. diff --git a/src/NameDisplay.py b/src/NameDisplay.py index c03af2bd6..6c04d84d8 100644 --- a/src/NameDisplay.py +++ b/src/NameDisplay.py @@ -284,8 +284,8 @@ class NameDisplay: @returns: Returns the L{Name} string representation @rtype: str """ - id = self._is_format_valid(name.sort_as) - return self.name_formats[id][_F_FN](name) + num = self._is_format_valid(name.sort_as) + return self.name_formats[num][_F_FN](name) def raw_sorted_name(self,raw_data): """ @@ -298,8 +298,8 @@ class NameDisplay: @returns: Returns the L{Name} string representation @rtype: str """ - id = self._is_format_valid(raw_data[_SORT]) - return self.name_formats[id][_F_RAWFN](raw_data) + num = self._is_format_valid(raw_data[_SORT]) + return self.name_formats[num][_F_RAWFN](raw_data) def display(self,person): """ @@ -345,8 +345,8 @@ class NameDisplay: if name == None: return "" - id = self._is_format_valid(name.display_as) - return self.name_formats[id][_F_FN](name) + num = self._is_format_valid(name.display_as) + return self.name_formats[num][_F_FN](name) def display_given(self,person): name = person.get_primary_name()