2007-02-19 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsDbWriteXML.py): Export top-level notes and note references. * src/RelLib/_Note.py (set_type,get_type): Add methods. svn: r8187
This commit is contained in:
@ -165,6 +165,19 @@ class Note(BasicPrimaryObject):
|
||||
"""
|
||||
return self.format
|
||||
|
||||
def set_type(self, the_type):
|
||||
"""
|
||||
@param the_type: descriptive type of the Note
|
||||
@type the_type: str
|
||||
"""
|
||||
self.type.set(the_type)
|
||||
|
||||
def get_type(self):
|
||||
"""
|
||||
@returns: the descriptive type of the Note
|
||||
@rtype: str
|
||||
"""
|
||||
return self.type
|
||||
|
||||
if __name__ == "__main__":
|
||||
import hotshot
|
||||
|
Reference in New Issue
Block a user