Update
svn: r5591
This commit is contained in:
parent
9895a58b1a
commit
dacc33610d
@ -1,5 +1,41 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
Gender statistics kept in GRAMPS database.
|
||||
"""
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from Person import Person
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class GenderStats:
|
||||
"""
|
||||
Class for keeping track of statistics related to Given Name vs.
|
||||
|
@ -1,15 +1,50 @@
|
||||
class Researcher:
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
Researcher informaiton for GRAMPS.
|
||||
"""
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from _helper import LocationBase
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class Researcher(LocationBase):
|
||||
"""Contains the information about the owner of the database"""
|
||||
|
||||
def __init__(self):
|
||||
"""Initializes the Researcher object"""
|
||||
|
||||
LocationBase.__init__(self )
|
||||
self.name = ""
|
||||
self.addr = ""
|
||||
self.city = ""
|
||||
self.state = ""
|
||||
self.country = ""
|
||||
self.postal = ""
|
||||
self.phone = ""
|
||||
self.email = ""
|
||||
|
||||
def get_name(self):
|
||||
@ -20,26 +55,6 @@ class Researcher:
|
||||
"""returns the database owner's address"""
|
||||
return self.addr
|
||||
|
||||
def get_city(self):
|
||||
"""returns the database owner's city"""
|
||||
return self.city
|
||||
|
||||
def get_state(self):
|
||||
"""returns the database owner's state"""
|
||||
return self.state
|
||||
|
||||
def get_country(self):
|
||||
"""returns the database owner's country"""
|
||||
return self.country
|
||||
|
||||
def get_postal_code(self):
|
||||
"""returns the database owner's postal code"""
|
||||
return self.postal
|
||||
|
||||
def get_phone(self):
|
||||
"""returns the database owner's phone number"""
|
||||
return self.phone
|
||||
|
||||
def get_email(self):
|
||||
"""returns the database owner's email"""
|
||||
return self.email
|
||||
|
@ -1013,7 +1013,7 @@ class PrivateSourceNote(SourceNote,PrivacyBase):
|
||||
SourceNote.__init__(self,source)
|
||||
PrivacyBase.__init__(self,source)
|
||||
|
||||
class LocationBase(BaseObject):
|
||||
class LocationBase:
|
||||
"""
|
||||
Base class for all things Address.
|
||||
"""
|
||||
@ -1023,8 +1023,6 @@ class LocationBase(BaseObject):
|
||||
Creates a LocationBase object,
|
||||
copying from the source object if it exists.
|
||||
"""
|
||||
|
||||
BaseObject.__init__(self)
|
||||
if source:
|
||||
self.city = source.city
|
||||
self.state = source.state
|
||||
|
@ -591,7 +591,7 @@ class Address(PrivateSourceNote,DateBase,LocationBase):
|
||||
# Location class for Places
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class Location(LocationBase):
|
||||
class Location(BaseObject,LocationBase):
|
||||
"""
|
||||
Provides information about a place.
|
||||
|
||||
@ -605,6 +605,7 @@ class Location(LocationBase):
|
||||
Creates a Location object, copying from the source object if it exists.
|
||||
"""
|
||||
|
||||
BaseObject.__init__(self)
|
||||
LocationBase.__init__(self,source)
|
||||
if source:
|
||||
self.parish = source.parish
|
||||
|
Loading…
Reference in New Issue
Block a user