Did I find the right examples for you? yes no

All Samples(49)  |  Call(30)  |  Derive(0)  |  Import(19)

src/g/r/gramps-3.4.2/src/Merge/mergefamily.py   Gramps(Download)
import GrampsDisplay
from QuestionDialog import ErrorDialog
from Errors import MergeError
import ManagedWindow
from Merge.mergeperson import MergePersonQuery
        if phoenix_person is None:
            if titanic_person is not None:
                raise MergeError("""When merging people where one person """
                    """doesn't exist, that "person" must be the person that """
                    """will be deleted from the database.""")
                        for childref in self.phoenix.get_child_ref_list()):
 
                    raise MergeError(_("A parent and child cannot be merged. "
                        "To merge these people, you must first break the "
                        "relationship between them."))
                        for childref in self.titanic.get_child_ref_list()):
 
                    raise MergeError(_("A parent and child cannot be merged. "
                        "To merge these people, you must first break the "
                        "relationship between them."))

src/g/r/gramps-3.4.2/src/Merge/mergeperson.py   Gramps(Download)
import DateHandler
from QuestionDialog import ErrorDialog
from Errors import MergeError
import ManagedWindow
 
        self.titanic = titanic
        if self.check_for_spouse(self.phoenix, self.titanic):
            raise MergeError(_("Spouses cannot be merged. To merge these "
                "people, you must first break the relationship between them."))
        if self.check_for_child(self.phoenix, self.titanic):
            raise MergeError(_("A parent and child cannot be merged. To merge "
            if family.has_handle_reference('Person', old_handle):
                if family_merger and parent_list_orig.count(parents) > 1:
                    raise MergeError(_("A person with multiple relations with "
                        "the same spouse is about to be merged. This is beyond "
                        "the capabilities of the merge routine. The merge is "
                    # also merge when father_handle or mother_handle == None!
                    if family_merge_guard:
                        raise MergeError(_("Multiple families get merged. "
                            "This is unusual, the merge is aborted."))
                    idx = parent_list.index(parents)

src/g/r/gramps-3.4.2/src/plugins/tool/MergeCitations.py   Gramps(Download)
from gen.lib import (Person, Family, Event, Place, MediaObject, Citation, 
                     Repository)
from Errors import MergeError
 
#-------------------------------------------------------------------------
                for (class_name, citation_handle) in citation_handle_list:
                    if class_name <> Citation.__name__:
                        raise MergeError("Encountered an object of type %s "
                        "that has a citation reference." % class_name)
 
                db.commit_repository(repository, trans)
            else:
                raise MergeError("Encountered an object of type %s that has "
                        "a citation reference." % class_name)
        db.remove_citation(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergesource.py   Gramps(Download)
import GrampsDisplay
import ManagedWindow
from Errors import MergeError
 
#-------------------------------------------------------------------------
                    self.database.commit_citation(citation, trans)
                else:
                    raise MergeError("Encounter an object of type %s that has "
                            "a source reference." % class_name)
            self.database.remove_source(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergerepository.py   Gramps(Download)
import const
import GrampsDisplay
from Errors import MergeError
import ManagedWindow
 
                    self.database.commit_source(source, trans)
                else:
                    raise MergeError("Encounter an object of type %s that has "
                        "a repository reference." % class_name)
            self.database.remove_repository(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergeplace.py   Gramps(Download)
import GrampsDisplay
import ManagedWindow
from Errors import MergeError
 
#-------------------------------------------------------------------------
                    self.database.commit_event(event, trans)
                else:
                    raise MergeError("Encounter an object of type %s that has "
                            "a place reference." % class_name)
            self.database.remove_place(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergenote.py   Gramps(Download)
import ManagedWindow
from gui.widgets.styledtextbuffer import StyledTextBuffer
from Errors import MergeError
 
#-------------------------------------------------------------------------
                    self.database.commit_repository(repo, trans)
                else:
                    raise MergeError("Encounter object of type %s that has "
                            "a note reference." % class_name)
            self.database.remove_note(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergemedia.py   Gramps(Download)
import ManagedWindow
import DateHandler
from Errors import MergeError
 
#-------------------------------------------------------------------------
                    self.database.commit_place(place, trans)
                else:
                    raise MergeError("Encounter an object of type % s that has "
                            "a media object reference." % class_name)
            self.database.remove_object(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergeevent.py   Gramps(Download)
import DateHandler
import Utils
from Errors import MergeError
 
#-------------------------------------------------------------------------
                    self.database.commit_family(family, trans)
                else:
                    raise MergeError("Encounter an object of type %s that has "
                            "an event reference." % class_name)
            self.database.remove_event(old_handle, trans)

src/g/r/gramps-3.4.2/src/Merge/mergecitation.py   Gramps(Download)
import ManagedWindow
import DateHandler
from Errors import MergeError
from Utils import confidence
 
                    self.database.commit_repository(repository, trans)
                else:
                    raise MergeError("Encounter an object of type %s that has "
                            "a citation reference." % class_name)
            self.database.remove_citation(old_handle, trans)