diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index e7e957c81b..8905966792 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -38,6 +38,7 @@ # Gramps modules # # ------------------------------------------------------------------------ +from .baseobj import BaseObject from ..config import config from ..const import GRAMPS_LOCALE as glocale from ..errors import DateError @@ -563,7 +564,7 @@ def _diff(self, date1, date2): # Date # # ------------------------------------------------------------------------- -class Date: +class Date(BaseObject): """ The core date handling class for Gramps. diff --git a/gramps/gen/lib/styledtext.py b/gramps/gen/lib/styledtext.py index c64ed76805..1c793115a1 100644 --- a/gramps/gen/lib/styledtext.py +++ b/gramps/gen/lib/styledtext.py @@ -35,6 +35,7 @@ # # ------------------------------------------------------------------------- from ..const import GRAMPS_LOCALE as glocale +from .baseobj import BaseObject from .styledtexttag import StyledTextTag _ = glocale.translation.gettext @@ -45,7 +46,7 @@ # StyledText # # ------------------------------------------------------------------------- -class StyledText: +class StyledText(BaseObject): """Helper class to enable character based text formatting. :py:class:`StyledText` is a wrapper class binding the clear text string and diff --git a/gramps/gen/lib/styledtexttag.py b/gramps/gen/lib/styledtexttag.py index dfe3c716f4..e1ee33396c 100644 --- a/gramps/gen/lib/styledtexttag.py +++ b/gramps/gen/lib/styledtexttag.py @@ -28,6 +28,7 @@ # # ------------------------------------------------------------------------- from ..const import GRAMPS_LOCALE as glocale +from .baseobj import BaseObject from .styledtexttagtype import StyledTextTagType _ = glocale.translation.gettext @@ -38,7 +39,7 @@ # StyledTextTag # # ------------------------------------------------------------------------- -class StyledTextTag: +class StyledTextTag(BaseObject): """Hold formatting information for :py:class:`.StyledText`. :py:class:`StyledTextTag` is a container class, it's attributes are