Change "GRAMPS" to "Gramps" in comments and docstrings

This commit is contained in:
Nick Hall 2017-02-20 19:04:31 +00:00
parent 3e5a956454
commit d0b50caea1
118 changed files with 187 additions and 187 deletions

View File

@ -23,7 +23,7 @@
# #
""" """
This package implements access to GRAMPS configuration. This package implements access to Gramps configuration.
""" """
#--------------------------------------------------------------- #---------------------------------------------------------------

View File

@ -33,7 +33,7 @@ import re
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ..lib.date import Date from ..lib.date import Date

View File

@ -33,7 +33,7 @@ import re
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ..lib.date import Date from ..lib.date import Date

View File

@ -888,7 +888,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_person_id_prefix(self, val): def set_person_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Person ID values. Set the naming template for Gramps Person ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -899,7 +899,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_citation_id_prefix(self, val): def set_citation_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Citation ID values. Set the naming template for Gramps Citation ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -910,7 +910,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_source_id_prefix(self, val): def set_source_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Source ID values. Set the naming template for Gramps Source ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -921,7 +921,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_media_id_prefix(self, val): def set_media_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Media ID values. Set the naming template for Gramps Media ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -932,7 +932,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_place_id_prefix(self, val): def set_place_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Place ID values. Set the naming template for Gramps Place ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -943,7 +943,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_family_id_prefix(self, val): def set_family_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Family ID values. The string is Set the naming template for Gramps Family ID values. The string is
expected to be in the form of a simple text string, or in a format expected to be in the form of a simple text string, or in a format
that contains a C/Python style format string using %d, such as F%d that contains a C/Python style format string using %d, such as F%d
or F%04d. or F%04d.
@ -953,7 +953,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_event_id_prefix(self, val): def set_event_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Event ID values. Set the naming template for Gramps Event ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -964,7 +964,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_repository_id_prefix(self, val): def set_repository_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Repository ID values. Set the naming template for Gramps Repository ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,
@ -975,7 +975,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
def set_note_id_prefix(self, val): def set_note_id_prefix(self, val):
""" """
Set the naming template for GRAMPS Note ID values. Set the naming template for Gramps Note ID values.
The string is expected to be in the form of a simple text string, or The string is expected to be in the form of a simple text string, or
in a format that contains a C/Python style format string using %d, in a format that contains a C/Python style format string using %d,

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#SystemFilters = None #SystemFilters = None

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#------------------------------------------------------------------------ #------------------------------------------------------------------------

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
class SearchFilter: class SearchFilter:

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
The following filters are provided in gen.filters.rules. The following filters are provided in gen.filters.rules.

View File

@ -40,7 +40,7 @@ from . import Rule
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasGrampsId(Rule): class HasGrampsId(Rule):
"""Rule that checks for an object with a specific GRAMPS ID.""" """Rule that checks for an object with a specific Gramps ID."""
labels = [ _('ID:') ] labels = [ _('ID:') ]
name = 'Object with <Id>' name = 'Object with <Id>'

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._hascitation import HasCitation from ._hascitation import HasCitation

View File

@ -40,7 +40,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a citation with a specific GRAMPS ID""" """Rule that checks for a citation with a specific Gramps ID"""
name = _('Citation with <Id>') name = _('Citation with <Id>')
description = _("Matches a citation with a specified Gramps ID") description = _("Matches a citation with a specified Gramps ID")

View File

@ -41,7 +41,7 @@ from .._hasgrampsid import HasGrampsId
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasSourceIdOf(HasGrampsId): class HasSourceIdOf(HasGrampsId):
"""Rule that checks for a citation with a source which has a specific """Rule that checks for a citation with a source which has a specific
GRAMPS ID""" Gramps ID"""
name = _('Citation with Source <Id>') name = _('Citation with Source <Id>')
description = _("Matches a citation with a source with a specified Gramps " description = _("Matches a citation with a source with a specified Gramps "

View File

@ -41,7 +41,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a citation whose GRAMPS ID Rule that checks for a citation whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -41,7 +41,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpSourceIdOf(RegExpIdBase): class RegExpSourceIdOf(RegExpIdBase):
""" """
Rule that checks for a citation whose GRAMPS ID Rule that checks for a citation whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from .._haseventbase import HasEventBase as HasEvent from .._haseventbase import HasEventBase as HasEvent

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a family with a specific GRAMPS ID""" """Rule that checks for a family with a specific Gramps ID"""
name = _('Event with <Id>') name = _('Event with <Id>')
description = _("Matches an event with a specified Gramps ID") description = _("Matches an event with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for an event whose GRAMPS ID Rule that checks for an event whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._searchfathername import SearchFatherName from ._searchfathername import SearchFatherName

View File

@ -40,7 +40,7 @@ from ._memberbase import child_base
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class ChildHasIdOf(RegExpIdBase): class ChildHasIdOf(RegExpIdBase):
"""Rule that checks for a person with a specific GRAMPS ID""" """Rule that checks for a person with a specific Gramps ID"""
labels = [ _('Person ID:') ] labels = [ _('Person ID:') ]
name = _('Families having child with Id containing <text>') name = _('Families having child with Id containing <text>')

View File

@ -40,7 +40,7 @@ from ._memberbase import father_base
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class FatherHasIdOf(RegExpIdBase): class FatherHasIdOf(RegExpIdBase):
"""Rule that checks for a person with a specific GRAMPS ID""" """Rule that checks for a person with a specific Gramps ID"""
labels = [ _('Person ID:') ] labels = [ _('Person ID:') ]
name = _('Families having father with Id containing <text>') name = _('Families having father with Id containing <text>')

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a family with a specific GRAMPS ID""" """Rule that checks for a family with a specific Gramps ID"""
name = _('Family with <Id>') name = _('Family with <Id>')
description = _("Matches a family with a specified Gramps ID") description = _("Matches a family with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from ._memberbase import mother_base
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class MotherHasIdOf(RegExpIdBase): class MotherHasIdOf(RegExpIdBase):
"""Rule that checks for a person with a specific GRAMPS ID""" """Rule that checks for a person with a specific Gramps ID"""
labels = [ _('Person ID:') ] labels = [ _('Person ID:') ]
name = _('Families having mother with Id containing <text>') name = _('Families having mother with Id containing <text>')

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a family whose GRAMPS ID Rule that checks for a family whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._allmedia import AllMedia from ._allmedia import AllMedia

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a media object with a specific GRAMPS ID""" """Rule that checks for a media object with a specific Gramps ID"""
name = _('Media object with <Id>') name = _('Media object with <Id>')
description = _("Matches a media object with a specified Gramps ID") description = _("Matches a media object with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a media object whose GRAMPS ID Rule that checks for a media object whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -20,7 +20,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._allnotes import AllNotes from ._allnotes import AllNotes

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a note with a specific GRAMPS ID""" """Rule that checks for a note with a specific Gramps ID"""
name = _('Note with <Id>') name = _('Note with <Id>')
description = _("Matches a note with a specified Gramps ID") description = _("Matches a note with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a note whose GRAMPS ID Rule that checks for a note whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -22,7 +22,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._disconnected import Disconnected from ._disconnected import Disconnected

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a person with a specific GRAMPS ID""" """Rule that checks for a person with a specific Gramps ID"""
name = _('Person with <Id>') name = _('Person with <Id>')
description = _("Matches person with a specified Gramps ID") description = _("Matches person with a specified Gramps ID")

View File

@ -39,7 +39,7 @@ from .. import Rule
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class MatchIdOf(Rule): class MatchIdOf(Rule):
"""Rule that checks for a person with a specific GRAMPS ID""" """Rule that checks for a person with a specific Gramps ID"""
labels = [ _('ID:') ] labels = [ _('ID:') ]
name = _('Person with <Id>') name = _('Person with <Id>')

View File

@ -39,7 +39,7 @@ from .._regexpidbase import RegExpIdBase
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
"""Rule that checks for a person whose GRAMPS ID """Rule that checks for a person whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -20,7 +20,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._allplaces import AllPlaces from ._allplaces import AllPlaces

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a place with a specific GRAMPS ID""" """Rule that checks for a place with a specific Gramps ID"""
name = _('Place with <Id>') name = _('Place with <Id>')
description = _("Matches a place with a specified Gramps ID") description = _("Matches a place with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a place whose GRAMPS ID Rule that checks for a place whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from ._allrepos import AllRepos from ._allrepos import AllRepos

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a repo with a specific GRAMPS ID""" """Rule that checks for a repo with a specific Gramps ID"""
name = _('Repository with <Id>') name = _('Repository with <Id>')
description = _("Matches a repository with a specified Gramps ID") description = _("Matches a repository with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a repo whose GRAMPS ID Rule that checks for a repo whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -21,7 +21,7 @@
# #
""" """
Package providing filter rules for GRAMPS. Package providing filter rules for Gramps.
""" """
from .._hassourcebase import HasSourceBase as HasSource from .._hassourcebase import HasSourceBase as HasSource

View File

@ -39,7 +39,7 @@ from .. import HasGrampsId
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class HasIdOf(HasGrampsId): class HasIdOf(HasGrampsId):
"""Rule that checks for a source with a specific GRAMPS ID""" """Rule that checks for a source with a specific Gramps ID"""
name = _('Source with <Id>') name = _('Source with <Id>')
description = _("Matches a source with a specified Gramps ID") description = _("Matches a source with a specified Gramps ID")

View File

@ -40,7 +40,7 @@ from .._regexpidbase import RegExpIdBase
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class RegExpIdOf(RegExpIdBase): class RegExpIdOf(RegExpIdBase):
""" """
Rule that checks for a source whose GRAMPS ID Rule that checks for a source whose Gramps ID
matches regular expression. matches regular expression.
""" """

View File

@ -39,7 +39,7 @@ _ = glocale.translation.gettext
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Class for notes used throughout the majority of GRAMPS objects # Class for notes used throughout the majority of Gramps objects
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class Note(BasicPrimaryObject): class Note(BasicPrimaryObject):

View File

@ -20,7 +20,7 @@
# #
""" """
Source Attribute class for GRAMPS. Source Attribute class for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -217,7 +217,7 @@ class PluginData:
.. attribute:: supported .. attribute:: supported
Bool value indicating if the plugin is still supported, default=True Bool value indicating if the plugin is still supported, default=True
.. attribute:: load_on_reg .. attribute:: load_on_reg
bool value, if True, the plugin is loaded on GRAMPS startup. Some bool value, if True, the plugin is loaded on Gramps startup. Some
plugins. Only set this value if for testing you want the plugin to be plugins. Only set this value if for testing you want the plugin to be
loaded immediately on startup. default=False loaded immediately on startup. default=False
.. attribute: icons .. attribute: icons

View File

@ -264,7 +264,7 @@ class PrivateProxyDb(ProxyDbBase):
def get_person_from_gramps_id(self, val): def get_person_from_gramps_id(self, val):
""" """
Finds a Person in the database from the passed GRAMPS ID. Finds a Person in the database from the passed Gramps ID.
If no such Person exists, None is returned. If no such Person exists, None is returned.
""" """
person = self.db.get_person_from_gramps_id(val) person = self.db.get_person_from_gramps_id(val)
@ -274,7 +274,7 @@ class PrivateProxyDb(ProxyDbBase):
def get_family_from_gramps_id(self, val): def get_family_from_gramps_id(self, val):
""" """
Finds a Family in the database from the passed GRAMPS ID. Finds a Family in the database from the passed Gramps ID.
If no such Family exists, None is returned. If no such Family exists, None is returned.
""" """
family = self.db.get_family_from_gramps_id(val) family = self.db.get_family_from_gramps_id(val)
@ -284,7 +284,7 @@ class PrivateProxyDb(ProxyDbBase):
def get_event_from_gramps_id(self, val): def get_event_from_gramps_id(self, val):
""" """
Finds an Event in the database from the passed GRAMPS ID. Finds an Event in the database from the passed Gramps ID.
If no such Event exists, None is returned. If no such Event exists, None is returned.
""" """
event = self.db.get_event_from_gramps_id(val) event = self.db.get_event_from_gramps_id(val)

View File

@ -690,7 +690,7 @@ class ProxyDbBase(DbReadBase):
def get_person_from_gramps_id(self, val): def get_person_from_gramps_id(self, val):
""" """
Finds a Person in the database from the passed GRAMPS ID. Finds a Person in the database from the passed Gramps ID.
If no such Person exists, None is returned. If no such Person exists, None is returned.
""" """
return self.gfilter(self.include_person, return self.gfilter(self.include_person,
@ -698,7 +698,7 @@ class ProxyDbBase(DbReadBase):
def get_family_from_gramps_id(self, val): def get_family_from_gramps_id(self, val):
""" """
Finds a Family in the database from the passed GRAMPS ID. Finds a Family in the database from the passed Gramps ID.
If no such Family exists, None is returned. If no such Family exists, None is returned.
""" """
return self.gfilter(self.include_family, return self.gfilter(self.include_family,
@ -706,7 +706,7 @@ class ProxyDbBase(DbReadBase):
def get_event_from_gramps_id(self, val): def get_event_from_gramps_id(self, val):
""" """
Finds an Event in the database from the passed GRAMPS ID. Finds an Event in the database from the passed Gramps ID.
If no such Event exists, None is returned. If no such Event exists, None is returned.
""" """
return self.gfilter(self.include_event, return self.gfilter(self.include_event,

View File

@ -152,7 +152,7 @@ def relative_path(original, base):
def expand_path(path, normalize = True): def expand_path(path, normalize = True):
""" """
Expand environment variables in a path Expand environment variables in a path
Uses both the environment variables and the GRAMPS environment Uses both the environment variables and the Gramps environment
The expansion uses the str.format, e.g. "~/{GRAMPSHOME}/{VERSION}/filename.txt" The expansion uses the str.format, e.g. "~/{GRAMPSHOME}/{VERSION}/filename.txt"
We make the assumption that the user will not use a path that contain variable names We make the assumption that the user will not use a path that contain variable names
(it is technically possible to use characters "{", "}" in paths) (it is technically possible to use characters "{", "}" in paths)

View File

@ -19,7 +19,7 @@
# #
""" """
Handles generation and access to thumbnails used in GRAMPS. Handles generation and access to thumbnails used in Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -133,7 +133,7 @@ def __build_thumb_path(path, rectangle=None, size=SIZE_NORMAL):
Convert the specified path into a corresponding path for the thumbnail Convert the specified path into a corresponding path for the thumbnail
image. We do this by converting the original path into an MD5SUM value image. We do this by converting the original path into an MD5SUM value
(which should be unique), adding the '.png' extension, and prepending (which should be unique), adding the '.png' extension, and prepending
with the GRAMPS thumbnail directory. with the Gramps thumbnail directory.
:type path: unicode :type path: unicode
:param path: filename of the source file :param path: filename of the source file

View File

@ -1250,7 +1250,7 @@ class ClipboardListView:
if mac(): if mac():
# context is empty on mac due to a bug, work around this # context is empty on mac due to a bug, work around this
# Note that this workaround code works fine in linux too as # Note that this workaround code works fine in linux too as
# we know very well inside of GRAMPS what sel_data can be, so # we know very well inside of Gramps what sel_data can be, so
# we can anticipate on it, instead of letting the wrapper handle # we can anticipate on it, instead of letting the wrapper handle
# it. This is less clean however ! # it. This is less clean however !
# See http://www.gramps-project.org/bugs/view.php?id=3089 for # See http://www.gramps-project.org/bugs/view.php?id=3089 for
@ -1447,7 +1447,7 @@ class ClipboardWindow(ManagedWindow):
self.clear_btn.set_sensitive(True) self.clear_btn.set_sensitive(True)
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of Gramps manual"""
display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_clear_clicked(self, obj): def on_clear_clicked(self, obj):

View File

@ -517,7 +517,7 @@ class DisplayState(Callback):
def set_gendepth(self, value): def set_gendepth(self, value):
""" Set the generations we search back for showing relationships """ Set the generations we search back for showing relationships
on GRAMPS interface. Value must be integer > 0 on Gramps interface. Value must be integer > 0
This method will be used by the preference editor when user changes This method will be used by the preference editor when user changes
the generations. the generations.
""" """

View File

@ -40,7 +40,7 @@ _RIGHT = Gdk.keyval_from_name("Right")
class GrampsTab(Gtk.Box): class GrampsTab(Gtk.Box):
""" """
This class provides the base level class for 'tabs', which are used to This class provides the base level class for 'tabs', which are used to
fill in notebook tabs for GRAMPS edit dialogs. fill in notebook tabs for Gramps edit dialogs.
Each tab returns a gtk container widget which can be inserted into a Each tab returns a gtk container widget which can be inserted into a
Gtk.Notebook by the instantiating object. Gtk.Notebook by the instantiating object.

View File

@ -228,7 +228,7 @@ class EditEvent(EditPrimary):
return (_('Edit Event'), self.get_menu_title()) return (_('Edit Event'), self.get_menu_title())
def help_clicked(self, obj): def help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of Gramps manual"""
display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def save(self, *obj): def save(self, *obj):

View File

@ -22,7 +22,7 @@
# #
""" """
EditPerson Dialog. Provide the interface to allow the GRAMPS program EditPerson Dialog. Provide the interface to allow the Gramps program
to edit information about a particular Person. to edit information about a particular Person.
""" """

View File

@ -339,9 +339,9 @@ class EditPrimary(ManagedWindow, DbGUIElement, metaclass=abc.ABCMeta):
def _uses_duplicate_id(self): def _uses_duplicate_id(self):
""" """
Check whether a changed or added GRAMPS ID already exists in the DB. Check whether a changed or added Gramps ID already exists in the DB.
Return True if a duplicate GRAMPS ID has been detected. Return True if a duplicate Gramps ID has been detected.
""" """
idval = self.obj.get_gramps_id() idval = self.obj.get_gramps_id()

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
from ._filtercombobox import FilterComboBox from ._filtercombobox import FilterComboBox

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -19,7 +19,7 @@
# #
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -20,7 +20,7 @@
from gi.repository import GObject from gi.repository import GObject
""" """
Package providing filtering framework for GRAMPS. Package providing filtering framework for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -20,7 +20,7 @@
# #
""" """
Package providing sidebar filters for GRAMPS. Package providing sidebar filters for Gramps.
""" """
from ._sidebarfilter import SidebarFilter from ._sidebarfilter import SidebarFilter

View File

@ -20,7 +20,7 @@
# #
""" """
Provide the managed window interface, which allows GRAMPS to track Provide the managed window interface, which allows Gramps to track
the create/deletion of dialog windows. the create/deletion of dialog windows.
""" """
@ -78,7 +78,7 @@ def get_object(self,value):
class GrampsWindowManager: class GrampsWindowManager:
""" """
Manage hierarchy of open GRAMPS windows. Manage hierarchy of open Gramps windows.
This class's purpose is to manage the hierarchy of open windows. This class's purpose is to manage the hierarchy of open windows.
The idea is to maintain the tree of branches and leaves. The idea is to maintain the tree of branches and leaves.
@ -372,7 +372,7 @@ class ManagedWindow:
return (menu_label, submenu_label) return (menu_label, submenu_label)
:param uistate: gramps uistate :param uistate: gramps uistate
:param track: {list of parent windows, [] if the main GRAMPS window :param track: {list of parent windows, [] if the main Gramps window
is the parent} is the parent}
:param obj: The object that is used to id the managed window, :param obj: The object that is used to id the managed window,
The inheriting object needs a method The inheriting object needs a method

View File

@ -21,7 +21,7 @@
# #
""" """
SelectCitation class for GRAMPS. SelectCitation class for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -267,7 +267,7 @@ class ViewManager(CLIManager):
def __init__(self, dbstate, view_category_order, user=None): def __init__(self, dbstate, view_category_order, user=None):
""" """
The viewmanager is initialised with a dbstate on which GRAMPS is The viewmanager is initialised with a dbstate on which Gramps is
working, and a fixed view_category_order, which is the order in which working, and a fixed view_category_order, which is the order in which
the view categories are accessible in the sidebar. the view categories are accessible in the sidebar.
""" """
@ -1557,7 +1557,7 @@ def key_bindings(obj):
def manual_activate(obj): def manual_activate(obj):
""" """
Display the GRAMPS manual Display the Gramps manual
""" """
display_help(webpage=WIKI_HELP_PAGE_MAN) display_help(webpage=WIKI_HELP_PAGE_MAN)
@ -1569,7 +1569,7 @@ def report_bug_activate(obj):
def home_page_activate(obj): def home_page_activate(obj):
""" """
Display the GRAMPS home page Display the Gramps home page
""" """
display_url(URL_HOMEPAGE) display_url(URL_HOMEPAGE)

View File

@ -350,7 +350,7 @@ class BookmarksDialog(ManagedWindow):
self.modified = True self.modified = True
def help_clicked(self): def help_clicked(self):
"""Display the relevant portion of GRAMPS manual.""" """Display the relevant portion of Gramps manual."""
display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def build_menu_names(self, obj): # this is meaningless while it's modal def build_menu_names(self, obj): # this is meaningless while it's modal

View File

@ -60,7 +60,7 @@ from ..actiongroup import ActionGroup
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
class PageView(DbGUIElement, metaclass=ABCMeta): class PageView(DbGUIElement, metaclass=ABCMeta):
""" """
The PageView class is the base class for all Data Views in GRAMPS. All The PageView class is the base class for all Data Views in Gramps. All
Views should derive from this class. The ViewManager understands the public Views should derive from this class. The ViewManager understands the public
interface of this class interface of this class

View File

@ -20,7 +20,7 @@
# #
""" """
CitationBaseModel classes for GRAMPS. CitationBaseModel classes for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -20,7 +20,7 @@
# #
""" """
CitationListModel class for GRAMPS. CitationListModel class for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -20,7 +20,7 @@
# #
""" """
CitationTreeModel classes for GRAMPS. CitationTreeModel classes for Gramps.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -23,7 +23,7 @@
""" """
This module provides the flat treemodel that is used for all flat treeviews. This module provides the flat treemodel that is used for all flat treeviews.
For performance, GRAMPS does not use Gtk.TreeStore, as that would mean keeping For performance, Gramps does not use Gtk.TreeStore, as that would mean keeping
the entire database table of an object in memory. the entire database table of an object in memory.
Instead, it suffices to keep in memory the sortkey and the matching handle, Instead, it suffices to keep in memory the sortkey and the matching handle,
as well as a map of sortkey,handle to treeview path, and vice versa. as well as a map of sortkey,handle to treeview path, and vice versa.

View File

@ -22,7 +22,7 @@
# #
""" """
TreeModel for the GRAMPS Person tree. TreeModel for the Gramps Person tree.
""" """
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -48,7 +48,7 @@ from cgi import escape
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gramps.gen.display.name import displayer as name_displayer from gramps.gen.display.name import displayer as name_displayer

View File

@ -275,7 +275,7 @@ class GrampletWindow(ManagedWindow):
def build_menu_names(self, obj): def build_menu_names(self, obj):
""" """
Part of the GRAMPS window interface. Part of the Gramps window interface.
""" """
return (self.title, 'Gramplet') return (self.title, 'Gramplet')
@ -1143,7 +1143,7 @@ class GrampletPane(Gtk.ScrolledWindow):
gramplet.expand, True, 0) gramplet.expand, True, 0)
# set height on gramplet.scrolledwindow here: # set height on gramplet.scrolledwindow here:
gramplet.scrolledwindow.set_size_request(-1, gramplet.height) gramplet.scrolledwindow.set_size_request(-1, gramplet.height)
# Can't minimize here, because GRAMPS calls show_all later: # Can't minimize here, because Gramps calls show_all later:
#if gramplet.gstate == "minimized": # starts max, change to min it #if gramplet.gstate == "minimized": # starts max, change to min it
# gramplet.set_state("minimized") # minimize it # gramplet.set_state("minimized") # minimize it
# set minimized is called in page subclass hack (above) # set minimized is called in page subclass hack (above)

View File

@ -150,7 +150,7 @@ class HtmlDoc(BaseDoc, TextDoc):
fname2 = '/'.join([self._backend.datadir(), _TEXTDOCSCREEN]) fname2 = '/'.join([self._backend.datadir(), _TEXTDOCSCREEN])
fname3 = '/'.join([self._backend.datadir(), _HTMLSCREEN]) fname3 = '/'.join([self._backend.datadir(), _HTMLSCREEN])
# links for GRAMPS favicon and stylesheets # links for Gramps favicon and stylesheets
links = Html('link', rel='shortcut icon', href=fname1, links = Html('link', rel='shortcut icon', href=fname1,
type='image/x-icon') + ( type='image/x-icon') + (
Html('link', rel='stylesheet', href=fname2, Html('link', rel='stylesheet', href=fname2,

View File

@ -87,7 +87,7 @@ _LATEX_TEMPLATE = '''%
\\usepackage[T1]{fontenc}% \\usepackage[T1]{fontenc}%
% %
% We use latin1 encoding at a minimum by default. % We use latin1 encoding at a minimum by default.
% GRAMPS uses unicode UTF-8 encoding for its % Gramps uses unicode UTF-8 encoding for its
% international support. LaTeX can deal gracefully % international support. LaTeX can deal gracefully
% with unicode encoding by using the ucs style invoked % with unicode encoding by using the ucs style invoked
% when utf8 is specified as an option to the inputenc % when utf8 is specified as an option to the inputenc

View File

@ -547,7 +547,7 @@ class AncestorTree(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance
""" """

View File

@ -1279,7 +1279,7 @@ class DescendTree(Report):
Create DescendTree object that produces the report. Create DescendTree object that produces the report.
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -154,7 +154,7 @@ class FanChart(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User instance user - a gen.user.User instance

View File

@ -210,7 +210,7 @@ def estimate_age(dbase, person,
and lower bounds of the person's age is returned. If either and lower bounds of the person's age is returned. If either
the birth or death date is missing, a (-1, -1) is returned. the birth or death date is missing, a (-1, -1) is returned.
@param dbase: GRAMPS database to which the Person object belongs @param dbase: Gramps database to which the Person object belongs
@type dbase: DbBase @type dbase: DbBase
@param person: Person object to calculate the age of @param person: Person object to calculate the age of
@type person: Person @type person: Person
@ -575,7 +575,7 @@ class Extract:
for child_ref in fam.get_child_ref_list(): for child_ref in fam.get_child_ref_list():
children.append(child_ref.ref) children.append(child_ref.ref)
# TODO: it would be good to return only biological children, # TODO: it would be good to return only biological children,
# but GRAMPS doesn't offer any efficient way to check that # but Gramps doesn't offer any efficient way to check that
# (I don't want to check each children's parent family mother # (I don't want to check each children's parent family mother
# and father relations as that would make this *much* slower) # and father relations as that would make this *much* slower)
if children: if children:
@ -642,7 +642,7 @@ class Extract:
"""goes through the database and collects the selected personal """goes through the database and collects the selected personal
data persons fitting the filter and birth year criteria. The data persons fitting the filter and birth year criteria. The
arguments are: arguments are:
dbase - the GRAMPS database dbase - the Gramps database
people - a list of filtered people people - a list of filtered people
options - report options_dict which sets which methods are used options - report options_dict which sets which methods are used
genders - which gender(s) to include into statistics genders - which gender(s) to include into statistics
@ -729,7 +729,7 @@ class StatisticsChart(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance
incl_private - Whether to include private data incl_private - Whether to include private data

View File

@ -79,7 +79,7 @@ class TimeLine(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - instance of gen.user.User() user - instance of gen.user.User()

View File

@ -22,7 +22,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# #
"Export to GRAMPS package" "Export to Gramps package"
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #

View File

@ -39,7 +39,7 @@ except ImportError:
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale from gramps.gen.const import GRAMPS_LOCALE as glocale

View File

@ -329,7 +329,7 @@ class FamilyLinesReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the FamilyLinesOptions class for this report options - instance of the FamilyLinesOptions class for this report
user - a gen.user.User() instance user - a gen.user.User() instance
name_format - Preferred format to display names name_format - Preferred format to display names

View File

@ -91,7 +91,7 @@ class RelGraphReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -539,7 +539,7 @@ class ProgenParser(UpdateCallback):
Pro-Gen defines his own set of (static) person and family identifiers. Pro-Gen defines his own set of (static) person and family identifiers.
""" """
UpdateCallback.__init__(self, user.callback) UpdateCallback.__init__(self, user.callback)
# Sometime their match the GRAMPS localisation, sometimes not. To be on # Sometime their match the Gramps localisation, sometimes not. To be on
# a safe and uniform path person and family identifiers for (alphabetical) # a safe and uniform path person and family identifiers for (alphabetical)
# German (de), English (en) and Dutch (nl) language defined here. # German (de), English (en) and Dutch (nl) language defined here.
self.bname, ext = os.path.splitext(file_name) self.bname, ext = os.path.splitext(file_name)
@ -754,7 +754,7 @@ class ProgenParser(UpdateCallback):
Finds or creates a Person based on the Pro-Gen ID. Finds or creates a Person based on the Pro-Gen ID.
""" """
# If the ID is already used (= is in the database), we return the item in # If the ID is already used (= is in the database), we return the item in
# the DB. Otherwise, we create a new person, assign the handle and GRAMPS ID. # the DB. Otherwise, we create a new person, assign the handle and Gramps ID.
person = Person() person = Person()
intid = self.gid2id.get(progen_id) intid = self.gid2id.get(progen_id)
if self.dbase.has_person_handle(intid): if self.dbase.has_person_handle(intid):

View File

@ -53,7 +53,7 @@ parser contains:
Level, Token, Token text, Data, and line number. Level, Token, Token text, Data, and line number.
The Data field is typically text, but in some cases, it may be a integer The Data field is typically text, but in some cases, it may be a integer
value representing an enumerated type or a GRAMPS object (in the case of value representing an enumerated type or a Gramps object (in the case of
dates). dates).
The parser works on the current level. Each context and level has a an The parser works on the current level. Each context and level has a an
@ -595,7 +595,7 @@ LDS_STATUS = {
# otherwise handled by the code, the tag itself is used for display and # otherwise handled by the code, the tag itself is used for display and
# export. For example "_XYZ" is not in the table and will be displayed as # export. For example "_XYZ" is not in the table and will be displayed as
# "_XYZ" and exported as an EVEN.TYPE=_XYZ # "_XYZ" and exported as an EVEN.TYPE=_XYZ
# As Custom entries, they do not appear in GRAMPS Events add choice unless # As Custom entries, they do not appear in Gramps Events add choice unless
# already imported via GEDCOM. # already imported via GEDCOM.
# #
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
@ -629,7 +629,7 @@ DEL_AND_C1 = dict.fromkeys(list(range(0x7F, 0x9F)))
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GEDCOM events to GRAMPS events conversion # GEDCOM events to Gramps events conversion
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
GED_TO_GRAMPS_EVENT = {} GED_TO_GRAMPS_EVENT = {}
@ -1029,7 +1029,7 @@ class GedLine:
""" """
Checks to see if the token maps a known GEDCOM event. If so, we Checks to see if the token maps a known GEDCOM event. If so, we
change the type from UNKNOWN to TOKEN_GEVENT (gedcom event), and change the type from UNKNOWN to TOKEN_GEVENT (gedcom event), and
the data is assigned to the associated GRAMPS EventType the data is assigned to the associated Gramps EventType
""" """
token = GED_TO_GRAMPS_EVENT.get(self.token_text) token = GED_TO_GRAMPS_EVENT.get(self.token_text)
if token: if token:
@ -1703,7 +1703,7 @@ class GedcomParser(UpdateCallback):
@staticmethod @staticmethod
def __find_from_handle(gramps_id, table): def __find_from_handle(gramps_id, table):
""" """
Find a handle corresponding to the specified GRAMPS ID. Find a handle corresponding to the specified Gramps ID.
The passed table contains the mapping. If the value is found, we return The passed table contains the mapping. If the value is found, we return
it, otherwise we create a new handle, store it, and return it. it, otherwise we create a new handle, store it, and return it.
@ -2665,33 +2665,33 @@ class GedcomParser(UpdateCallback):
def __find_person_handle(self, gramps_id): def __find_person_handle(self, gramps_id):
""" """
Return the database handle associated with the person's GRAMPS ID Return the database handle associated with the person's Gramps ID
""" """
return self.__find_from_handle(gramps_id, self.gid2id) return self.__find_from_handle(gramps_id, self.gid2id)
def __find_family_handle(self, gramps_id): def __find_family_handle(self, gramps_id):
""" """
Return the database handle associated with the family's GRAMPS ID Return the database handle associated with the family's Gramps ID
""" """
return self.__find_from_handle(gramps_id, self.fid2id) return self.__find_from_handle(gramps_id, self.fid2id)
def __find_media_handle(self, gramps_id): def __find_media_handle(self, gramps_id):
""" """
Return the database handle associated with the media object's GRAMPS ID Return the database handle associated with the media object's Gramps ID
""" """
return self.__find_from_handle(gramps_id, self.oid2id) return self.__find_from_handle(gramps_id, self.oid2id)
def __find_note_handle(self, gramps_id): def __find_note_handle(self, gramps_id):
""" """
Return the database handle associated with the media object's GRAMPS ID Return the database handle associated with the media object's Gramps ID
""" """
return self.__find_from_handle(gramps_id, self.nid2id) return self.__find_from_handle(gramps_id, self.nid2id)
def __find_or_create_person(self, gramps_id): def __find_or_create_person(self, gramps_id):
""" """
Finds or creates a person based on the GRAMPS ID. If the ID is Finds or creates a person based on the Gramps ID. If the ID is
already used (is in the db), we return the item in the db. Otherwise, already used (is in the db), we return the item in the db. Otherwise,
we create a new person, assign the handle and GRAMPS ID. we create a new person, assign the handle and Gramps ID.
""" """
person = Person() person = Person()
intid = self.gid2id.get(gramps_id) intid = self.gid2id.get(gramps_id)
@ -2705,9 +2705,9 @@ class GedcomParser(UpdateCallback):
def __find_or_create_family(self, gramps_id): def __find_or_create_family(self, gramps_id):
""" """
Finds or creates a family based on the GRAMPS ID. If the ID is Finds or creates a family based on the Gramps ID. If the ID is
already used (is in the db), we return the item in the db. Otherwise, already used (is in the db), we return the item in the db. Otherwise,
we create a new family, assign the handle and GRAMPS ID. we create a new family, assign the handle and Gramps ID.
""" """
family = Family() family = Family()
# Add a counter for reordering the children later: # Add a counter for reordering the children later:
@ -2723,9 +2723,9 @@ class GedcomParser(UpdateCallback):
def __find_or_create_media(self, gramps_id): def __find_or_create_media(self, gramps_id):
""" """
Finds or creates a media object based on the GRAMPS ID. If the ID is Finds or creates a media object based on the Gramps ID. If the ID is
already used (is in the db), we return the item in the db. Otherwise, already used (is in the db), we return the item in the db. Otherwise,
we create a new media object, assign the handle and GRAMPS ID. we create a new media object, assign the handle and Gramps ID.
""" """
obj = Media() obj = Media()
intid = self.oid2id.get(gramps_id) intid = self.oid2id.get(gramps_id)
@ -2739,10 +2739,10 @@ class GedcomParser(UpdateCallback):
def __find_or_create_source(self, gramps_id): def __find_or_create_source(self, gramps_id):
""" """
Find or create a source based on the GRAMPS ID. Find or create a source based on the Gramps ID.
If the ID is already used (is in the db), we return the item in the If the ID is already used (is in the db), we return the item in the
db. Otherwise, we create a new source, assign the handle and GRAMPS ID. db. Otherwise, we create a new source, assign the handle and Gramps ID.
""" """
obj = Source() obj = Source()
@ -2757,9 +2757,9 @@ class GedcomParser(UpdateCallback):
def __find_or_create_repository(self, gramps_id): def __find_or_create_repository(self, gramps_id):
""" """
Finds or creates a repository based on the GRAMPS ID. If the ID is Finds or creates a repository based on the Gramps ID. If the ID is
already used (is in the db), we return the item in the db. Otherwise, already used (is in the db), we return the item in the db. Otherwise,
we create a new repository, assign the handle and GRAMPS ID. we create a new repository, assign the handle and Gramps ID.
Some GEDCOM "flavors" destroy the specification, and declare the Some GEDCOM "flavors" destroy the specification, and declare the
repository inline instead of in a object. repository inline instead of in a object.
@ -2776,10 +2776,10 @@ class GedcomParser(UpdateCallback):
def __find_or_create_note(self, gramps_id): def __find_or_create_note(self, gramps_id):
""" """
Finds or creates a note based on the GRAMPS ID. If the ID is Finds or creates a note based on the Gramps ID. If the ID is
already used (is in the db), we return the item in the db. Otherwise, already used (is in the db), we return the item in the db. Otherwise,
we create a new note, assign the handle and GRAMPS ID. we create a new note, assign the handle and Gramps ID.
If no GRAMPS ID is passed in, we not only make a Note with GID, we If no Gramps ID is passed in, we not only make a Note with GID, we
commit it. commit it.
""" """
note = Note() note = Note()
@ -3793,7 +3793,7 @@ class GedcomParser(UpdateCallback):
def __person_std_event(self, line, state): def __person_std_event(self, line, state):
""" """
Parses GEDCOM event types that map to a GRAMPS standard type. Additional Parses GEDCOM event types that map to a Gramps standard type. Additional
parsing required is for the event detail: parsing required is for the event detail:
+1 <<EVENT_DETAIL>> {0:1} p.* +1 <<EVENT_DETAIL>> {0:1} p.*
@ -3843,8 +3843,8 @@ class GedcomParser(UpdateCallback):
def __person_birt(self, line, state): def __person_birt(self, line, state):
""" """
Parses GEDCOM BIRT tag into a GRAMPS birth event. Additional work Parses GEDCOM BIRT tag into a Gramps birth event. Additional work
must be done, since additional handling must be done by GRAMPS to set must be done, since additional handling must be done by Gramps to set
this up as a birth reference event. this up as a birth reference event.
n BIRT [Y|<NULL>] {1:1} n BIRT [Y|<NULL>] {1:1}
@ -3888,8 +3888,8 @@ class GedcomParser(UpdateCallback):
def __person_deat(self, line, state): def __person_deat(self, line, state):
""" """
Parses GEDCOM DEAT tag into a GRAMPS birth event. Additional work Parses GEDCOM DEAT tag into a Gramps birth event. Additional work
must be done, since additional handling must be done by GRAMPS to set must be done, since additional handling must be done by Gramps to set
this up as a death reference event. this up as a death reference event.
n DEAT [Y|<NULL>] {1:1} n DEAT [Y|<NULL>] {1:1}
@ -4323,7 +4323,7 @@ class GedcomParser(UpdateCallback):
def __person_std_attr(self, line, state): def __person_std_attr(self, line, state):
""" """
Parses an TOKEN that GRAMPS recognizes as an Attribute Parses an TOKEN that Gramps recognizes as an Attribute
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4341,7 +4341,7 @@ class GedcomParser(UpdateCallback):
def __person_fact(self, line, state): def __person_fact(self, line, state):
""" """
Parses an TOKEN that GRAMPS recognizes as an Attribute Parses an TOKEN that Gramps recognizes as an Attribute
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4363,7 +4363,7 @@ class GedcomParser(UpdateCallback):
def __person_bapl(self, line, state): def __person_bapl(self, line, state):
""" """
Parses an BAPL TOKEN, producing a GRAMPS LdsOrd instance Parses an BAPL TOKEN, producing a Gramps LdsOrd instance
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4374,7 +4374,7 @@ class GedcomParser(UpdateCallback):
def __person_conl(self, line, state): def __person_conl(self, line, state):
""" """
Parses an CONL TOKEN, producing a GRAMPS LdsOrd instance Parses an CONL TOKEN, producing a Gramps LdsOrd instance
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4385,7 +4385,7 @@ class GedcomParser(UpdateCallback):
def __person_endl(self, line, state): def __person_endl(self, line, state):
""" """
Parses an ENDL TOKEN, producing a GRAMPS LdsOrd instance Parses an ENDL TOKEN, producing a Gramps LdsOrd instance
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4396,7 +4396,7 @@ class GedcomParser(UpdateCallback):
def __person_slgc(self, line, state): def __person_slgc(self, line, state):
""" """
Parses an SLGC TOKEN, producing a GRAMPS LdsOrd instance Parses an SLGC TOKEN, producing a Gramps LdsOrd instance
@param line: The current line in GedLine format @param line: The current line in GedLine format
@type line: GedLine @type line: GedLine
@ -4639,7 +4639,7 @@ class GedcomParser(UpdateCallback):
def __person_famc_sour(self, line, state): def __person_famc_sour(self, line, state):
""" """
Parses the SOUR tag on an INDI.FAMC tag. GRAMPS has no corresponding Parses the SOUR tag on an INDI.FAMC tag. Gramps has no corresponding
record on its family relationship, so we add the source to the Person record on its family relationship, so we add the source to the Person
record. record.
@ -4844,7 +4844,7 @@ class GedcomParser(UpdateCallback):
def __family_std_event(self, line, state): def __family_std_event(self, line, state):
""" """
Parses GEDCOM event types that map to a GRAMPS standard type. Additional Parses GEDCOM event types that map to a Gramps standard type. Additional
parsing required is for the event detail: parsing required is for the event detail:
+1 <<EVENT_DETAIL>> {0:1} p.* +1 <<EVENT_DETAIL>> {0:1} p.*
@ -4889,7 +4889,7 @@ class GedcomParser(UpdateCallback):
def __family_even(self, line, state): def __family_even(self, line, state):
""" """
Parses GEDCOM event types that map to a GRAMPS standard type. Additional Parses GEDCOM event types that map to a Gramps standard type. Additional
parsing required is for the event detail: parsing required is for the event detail:
+1 <<EVENT_DETAIL>> {0:1} p.* +1 <<EVENT_DETAIL>> {0:1} p.*
@ -7554,7 +7554,7 @@ class GedcomParser(UpdateCallback):
> +1 <<NOTE_STRUCTURE>> {0:M} > +1 <<NOTE_STRUCTURE>> {0:M}
The Note structure is ignored, since we have nothing The Note structure is ignored, since we have nothing
corresponding in GRAMPS. corresponding in Gramps.
Based on the values calculated, attempt to convert to a valid Based on the values calculated, attempt to convert to a valid
change time using time.strptime. If this fails (and it shouldn't change time using time.strptime. If this fails (and it shouldn't
@ -7961,7 +7961,7 @@ class GedcomStageOne:
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
def make_gedcom_date(subdate, calendar, mode, quality): def make_gedcom_date(subdate, calendar, mode, quality):
""" """
Convert a GRAMPS date structure into a GEDCOM compatible date. Convert a Gramps date structure into a GEDCOM compatible date.
""" """
retval = "" retval = ""
(day, mon, year) = subdate[0:3] (day, mon, year) = subdate[0:3]

View File

@ -47,7 +47,7 @@ from gramps.gen.lib.gcalendar import (gregorian_ymd, hebrew_sdn)
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
def g2iso(dow): def g2iso(dow):
""" Converst GRAMPS day of week to ISO day of week """ """ Converst Gramps day of week to ISO day of week """
# Gramps: SUN = 1 # Gramps: SUN = 1
# ISO: MON = 1 # ISO: MON = 1
return (dow + 5) % 7 + 1 return (dow + 5) % 7 + 1

View File

@ -25,7 +25,7 @@
# by Don Allingham and on valuable input from Dr. Martin Senftleben # by Don Allingham and on valuable input from Dr. Martin Senftleben
# Modified by Joachim Breitner to not use „Großcousine“, in accordance with # Modified by Joachim Breitner to not use „Großcousine“, in accordance with
# http://de.wikipedia.org/wiki/Verwandtschaftsbeziehung # http://de.wikipedia.org/wiki/Verwandtschaftsbeziehung
# Rewritten from scratch for GRAMPS 3 by Stefan Siegel, # Rewritten from scratch for Gramps 3 by Stefan Siegel,
# loosely based on rel_fr.py # loosely based on rel_fr.py
""" """
German-specific classes for relationships. German-specific classes for relationships.

View File

@ -30,7 +30,7 @@ Icelandic-Specific classes for relationships.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS modules # Gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -52,7 +52,7 @@ class AlphabeticalIndex(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance
""" """

View File

@ -77,7 +77,7 @@ class AncestorReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -65,7 +65,7 @@ class CustomText(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -407,7 +407,7 @@ class DescendantReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -84,7 +84,7 @@ class DetAncestorReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -87,7 +87,7 @@ class DetDescendantReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -62,7 +62,7 @@ class EndOfLineReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -66,7 +66,7 @@ class FamilyGroup(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -99,7 +99,7 @@ class IndivCompleteReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -65,7 +65,7 @@ class KinshipReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

View File

@ -65,7 +65,7 @@ class NumberOfAncestorsReport(Report):
The arguments are: The arguments are:
database - the GRAMPS database instance database - the Gramps database instance
options - instance of the Options class for this report options - instance of the Options class for this report
user - a gen.user.User() instance user - a gen.user.User() instance

Some files were not shown because too many files have changed in this diff Show More