* src/Date.py (is_equal): Add method -- needed to compare dates
for being identical, since __cmp__ only compares the sorting value and ignores the modifiers. * src/RelLib.py (Event.are_equal, LdsOrd.are_equal): Use is_equal() method to compare dates. * src/AddrEdit.py: Use is_equal() method to compare dates. * src/EventEdit.py: Use is_equal() method to compare dates. * src/gramps.glade (date_edit): Re-order widgets, add hot keys; (event_edit, addr_edit): Remove button relief as in editPerson. svn: r3558
This commit is contained in:
@ -923,7 +923,7 @@ class Event(PrimaryObject,DataObj):
|
||||
if (self.name != other.name or self.place != other.place or
|
||||
self.description != other.description or self.cause != other.cause or
|
||||
self.private != other.private or
|
||||
self.get_date_object() != other.get_date_object() or
|
||||
(not self.get_date_object().is_equal(other.get_date_object())) or
|
||||
len(self.get_source_references()) != len(other.get_source_references())):
|
||||
return 0
|
||||
|
||||
@ -1448,7 +1448,7 @@ class LdsOrd(SourceNote):
|
||||
self.place != other.place or
|
||||
self.status != other.status or
|
||||
self.temple != other.temple or
|
||||
self.get_date_object() != other.get_date_object() or
|
||||
not self.get_date_object().is_equal(other.get_date_object()) or
|
||||
len(self.get_source_references()) != len(other.get_source_references())):
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user