* src/const.py.in: Add notes_formats list.
* src/RelLib.py: Support format for the notes. * src/WriteXML.py: Support format for the notes. * src/GrampsParser.py: Support format for the notes. svn: r2492
This commit is contained in:
@ -540,6 +540,7 @@ class Note:
|
||||
def __init__(self,text = ""):
|
||||
"""create a new Note object from the passed string"""
|
||||
self.text = text
|
||||
self.format = 0
|
||||
|
||||
def set(self,text):
|
||||
"""set the note contents to the passed string"""
|
||||
@ -553,6 +554,14 @@ class Note:
|
||||
"""adds the text to the note's contents"""
|
||||
self.text = self.text + text
|
||||
|
||||
def setFormat(self,format):
|
||||
"""set the format to the passed value"""
|
||||
self.format = format
|
||||
|
||||
def getFormat(self):
|
||||
"""return the note's format"""
|
||||
return self.format
|
||||
|
||||
class Photo(SourceNote):
|
||||
"""Containter for information about an image file, including location,
|
||||
description and privacy"""
|
||||
|
Reference in New Issue
Block a user