* 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:
Alex Roitman
2003-12-10 03:49:53 +00:00
parent 2d71af3791
commit 4e66fd7b70
5 changed files with 67 additions and 32 deletions

View File

@ -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"""