Add labels to SytledText and Note
This commit is contained in:
parent
c4e7d0ec25
commit
18ac940566
@ -141,6 +141,19 @@ class Note(BasicPrimaryObject):
|
|||||||
"private": bool,
|
"private": bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_labels(cls, _):
|
||||||
|
return {
|
||||||
|
"handle": _("Handle"),
|
||||||
|
"gramps_id": _("Gramps ID"),
|
||||||
|
"text": _("Text"),
|
||||||
|
"format": _("Format"),
|
||||||
|
"type": _("Type"),
|
||||||
|
"change": _("Last changed"),
|
||||||
|
"tag_list": _("Tags"),
|
||||||
|
"private": _("Private"),
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_struct(cls, struct):
|
def from_struct(cls, struct):
|
||||||
"""
|
"""
|
||||||
|
@ -339,6 +339,13 @@ class StyledText(object):
|
|||||||
"tags": [StyledTextTag],
|
"tags": [StyledTextTag],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_labels(cls, _):
|
||||||
|
return {
|
||||||
|
"string": _("Text"),
|
||||||
|
"tags": _("Styled Text Tags"),
|
||||||
|
}
|
||||||
|
|
||||||
def unserialize(self, data):
|
def unserialize(self, data):
|
||||||
"""
|
"""
|
||||||
Convert a serialized tuple of data to an object.
|
Convert a serialized tuple of data to an object.
|
||||||
|
Loading…
Reference in New Issue
Block a user