Module gedcom.element.root
Virtual GEDCOM root element containing all logical records as children
Expand source code
# -*- coding: utf-8 -*-
# Python GEDCOM Parser
#
# Copyright (C) 2018 Damon Brodie (damon.brodie at gmail.com)
# Copyright (C) 2018-2019 Nicklas Reincke (contact at reynke.com)
# Copyright (C) 2016 Andreas Oberritter
# Copyright (C) 2012 Madeleine Price Ball
# Copyright (C) 2005 Daniel Zappala (zappala at cs.byu.edu)
# Copyright (C) 2005 Brigham Young University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Further information about the license: http://www.gnu.org/licenses/gpl-2.0.html
"""Virtual GEDCOM root element containing all logical records as children"""
from gedcom.element.element import Element
class RootElement(Element):
"""Virtual GEDCOM root element containing all logical records as children"""
def __init__(self, level=-1, pointer="", tag="ROOT", value="", crlf="\n", multi_line=True):
super(RootElement, self).__init__(level, pointer, tag, value, crlf, multi_line)
Classes
class RootElement (level=-1, pointer='', tag='ROOT', value='', crlf='\n', multi_line=True)
-
Virtual GEDCOM root element containing all logical records as children
Expand source code
class RootElement(Element): """Virtual GEDCOM root element containing all logical records as children""" def __init__(self, level=-1, pointer="", tag="ROOT", value="", crlf="\n", multi_line=True): super(RootElement, self).__init__(level, pointer, tag, value, crlf, multi_line)
Ancestors
Inherited members