* src/RelLib.py (Event.are_equal): Only compare place handles if
at least one if them is non-empty. svn: r3935
This commit is contained in:
parent
c410c21c7c
commit
9e51b4673b
@ -29,6 +29,8 @@
|
|||||||
* src/dates/Date_ru.py: Add formats and quality.
|
* src/dates/Date_ru.py: Add formats and quality.
|
||||||
|
|
||||||
* src/EditPerson.py (get_place): Use "" for empty place's handle.
|
* src/EditPerson.py (get_place): Use "" for empty place's handle.
|
||||||
|
* src/RelLib.py (Event.are_equal): Only compare place handles if
|
||||||
|
at least one if them is non-empty.
|
||||||
|
|
||||||
2005-01-17 Don Allingham <dallingham@users.sourceforge.net>
|
2005-01-17 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/ReportUtils.py: Added
|
* src/ReportUtils.py: Added
|
||||||
|
@ -1548,7 +1548,8 @@ class Event(PrimaryObject,DataObj):
|
|||||||
"""
|
"""
|
||||||
if other == None:
|
if other == None:
|
||||||
other = Event (None)
|
other = Event (None)
|
||||||
if (self.name != other.name or self.place != other.place or
|
if (self.name != other.name or
|
||||||
|
((self.place or other.place) and (self.place != other.place)) or
|
||||||
self.description != other.description or self.cause != other.cause or
|
self.description != other.description or self.cause != other.cause or
|
||||||
self.private != other.private or
|
self.private != other.private or
|
||||||
(not self.get_date_object().is_equal(other.get_date_object())) or
|
(not self.get_date_object().is_equal(other.get_date_object())) or
|
||||||
|
Loading…
Reference in New Issue
Block a user