| 1 | # |
| 2 | # Gramps - a GTK+/GNOME based genealogy program |
| 3 | # |
| 4 | # Copyright (C) 2015-2016 Gramps Development Team |
| 5 | # Copyright (C) 2016 Nick Hall |
| 6 | # Copyright (C) 2024 Doug Blank |
| 7 | # Copyright (C) 2024,2025 Steve Youngs <[email protected]> |
| 8 | # |
| 9 | # This program is free software; you can redistribute it and/or modify |
| 10 | # it under the terms of the GNU General Public License as published by |
| 11 | # the Free Software Foundation; either version 2 of the License, or |
| 12 | # (at your option) any later version. |
| 13 | # |
| 14 | # This program is distributed in the hope that it will be useful, |
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | # GNU General Public License for more details. |
| 18 | # |
| 19 | # You should have received a copy of the GNU General Public License along |
| 20 | # with this program; if not, see <https://www.gnu.org/licenses/>. |
| 21 | # |
| 22 | |
| 23 | """ |
| 24 | Gramps generic database handler |
| 25 | """ |
| 26 | |
| 27 | # ------------------------------------------------------------------------ |
| 28 | # |
| 29 | # Python modules |
| 30 | # |
| 31 | # ------------------------------------------------------------------------ |
| 32 | from __future__scip-python python python-stdlib 3.11 __future__/__init__: import annotationsscip-python python python-stdlib 3.11 __future__/annotations.annotations. |
| 33 | import bisectscip-python python python-stdlib 3.11 bisect/__init__: |
| 34 | import loggingscip-python python python-stdlib 3.11 logging/__init__: |
| 35 | import osscip-python python python-stdlib 3.11 os/__init__: |
| 36 | import picklescip-python python python-stdlib 3.11 pickle/__init__: |
| 37 | import randomscip-python python python-stdlib 3.11 random/__init__: |
| 38 | import rescip-python python python-stdlib 3.11 re/__init__: |
| 39 | import timescip-python python python-stdlib 3.11 time/__init__: |
| 40 | from pathlibscip-python python python-stdlib 3.11 pathlib/__init__: import Pathscip-python python python-stdlib 3.11 pathlib/Path# |
| 41 | from typingscip-python python python-stdlib 3.11 typing/__init__: import Anyscip-python python python-stdlib 3.11 typing/Any., Generatorscip-python python python-stdlib 3.11 typing/Generator#, Typescip-python python python-stdlib 3.11 typing/Type. |
| 42 | |
| 43 | # ------------------------------------------------------------------------ |
| 44 | # |
| 45 | # Gramps modules |
| 46 | # |
| 47 | # ------------------------------------------------------------------------ |
| 48 | from ..constscip-python python gramps 6.0.7 const/__init__: import GRAMPS_LOCALE as glocalescip-python python gramps 6.0.7 `gramps.gen.const`/GRAMPS_LOCALE. |
| 49 | from ..errorsscip-python python gramps 6.0.7 errors/__init__: import HandleErrorscip-python python gramps 6.0.7 `gramps.gen.errors`/HandleError# |
| 50 | from ..libscip-python python gramps 6.0.7 lib/__init__: import ( |
| 51 | Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#, |
| 52 | Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#, |
| 53 | Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#, |
| 54 | Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#, |
| 55 | NameOriginTypescip-python python gramps 6.0.7 `gramps.gen.lib.nameorigintype`/NameOriginType#, |
| 56 | Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#, |
| 57 | Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#, |
| 58 | Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#, |
| 59 | Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#, |
| 60 | Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#, |
| 61 | Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#, |
| 62 | ) |
| 63 | from ..lib.serializescip-python python gramps 6.0.7 `lib.serialize`/__init__: import BlobSerializerscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#, JSONSerializerscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/JSONSerializer# |
| 64 | from ..lib.genderstatsscip-python python gramps 6.0.7 `lib.genderstats`/__init__: import GenderStatsscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats# |
| 65 | from ..lib.researcherscip-python python gramps 6.0.7 `lib.researcher`/__init__: import Researcherscip-python python gramps 6.0.7 `gramps.gen.lib.researcher`/Researcher# |
| 66 | from ..typesscip-python python python-stdlib 3.11 types/__init__: import ( |
| 67 | AnyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/AnyHandle., |
| 68 | PersonHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PersonHandle., |
| 69 | EventHandlescip-python python gramps 6.0.7 `gramps.gen.types`/EventHandle., |
| 70 | FamilyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/FamilyHandle., |
| 71 | PlaceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PlaceHandle., |
| 72 | PrimaryObjectscip-python python gramps 6.0.7 `gramps.gen.lib.primaryobj`/PrimaryObject#, |
| 73 | SourceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/SourceHandle., |
| 74 | RepositoryHandlescip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryHandle., |
| 75 | CitationHandlescip-python python gramps 6.0.7 `gramps.gen.types`/CitationHandle., |
| 76 | MediaHandlescip-python python gramps 6.0.7 `gramps.gen.types`/MediaHandle., |
| 77 | NoteHandlescip-python python gramps 6.0.7 `gramps.gen.types`/NoteHandle., |
| 78 | TagHandlescip-python python gramps 6.0.7 `gramps.gen.types`/TagHandle., |
| 79 | TableObjectTypescip-python python gramps 6.0.7 `gramps.gen.types`/TableObjectType., |
| 80 | PersonGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PersonGrampsID., |
| 81 | EventGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/EventGrampsID., |
| 82 | FamilyGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/FamilyGrampsID., |
| 83 | PlaceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PlaceGrampsID., |
| 84 | SourceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/SourceGrampsID., |
| 85 | RepositoryGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryGrampsID., |
| 86 | CitationGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/CitationGrampsID., |
| 87 | MediaGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/MediaGrampsID., |
| 88 | NoteGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/NoteGrampsID., |
| 89 | ) |
| 90 | from ..updatecallbackscip-python python gramps 6.0.7 updatecallback/__init__: import UpdateCallbackscip-python python gramps 6.0.7 `gramps.gen.updatecallback`/UpdateCallback# |
| 91 | from ..utils.callbackscip-python python gramps 6.0.7 `utils.callback`/__init__: import Callbackscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback# |
| 92 | from ..utils.idscip-python python gramps 6.0.7 `utils.id`/__init__: import create_idscip-python python gramps 6.0.7 `gramps.gen.utils.id`/create_id(). |
| 93 | from . import ( |
| 94 | CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., |
| 95 | DBLOGNAMEscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBLOGNAME., |
| 96 | DBMODE_Rscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBMODE_R., |
| 97 | DBMODE_Wscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBMODE_W., |
| 98 | DBUNDOFNscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBUNDOFN., |
| 99 | EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., |
| 100 | FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., |
| 101 | KEY_TO_NAME_MAPscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/KEY_TO_NAME_MAP., |
| 102 | MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., |
| 103 | NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., |
| 104 | PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., |
| 105 | PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., |
| 106 | REFERENCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REFERENCE_KEY., |
| 107 | REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., |
| 108 | SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., |
| 109 | TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY., |
| 110 | TXNADDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNADD., |
| 111 | TXNDELscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNDEL., |
| 112 | TXNUPDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNUPD., |
| 113 | DbReadBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#, |
| 114 | DbUndoscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#, |
| 115 | DbWriteBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#, |
| 116 | ) |
| 117 | from .bookmarksscip-python python gramps 6.0.7 bookmarks/__init__: import DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks# |
| 118 | from .exceptionsscip-python python gramps 6.0.7 exceptions/__init__: import DbUpgradeRequiredErrorscip-python python gramps 6.0.7 `gramps.gen.db.exceptions`/DbUpgradeRequiredError#, DbVersionErrorscip-python python gramps 6.0.7 `gramps.gen.db.exceptions`/DbVersionError# |
| 119 | from .utilsscip-python python gramps 6.0.7 utils/__init__: import clear_lock_filescip-python python gramps 6.0.7 `gramps.gen.db.utils`/clear_lock_file()., write_lock_filescip-python python gramps 6.0.7 `gramps.gen.db.utils`/write_lock_file(). |
| 120 | from typingscip-python python python-stdlib 3.11 typing/__init__: import Unionscip-python python python-stdlib 3.11 typing/Union. |
| 121 | |
| 122 | _ = glocalescip-python python gramps 6.0.7 `gramps.gen.const`/GRAMPS_LOCALE..translationscip-python python gramps 6.0.7 `gramps.gen.utils.grampslocale`/GrampsLocale#translation..gettextscip-python python gramps 6.0.7 `gramps.gen.utils.grampstranslation`/GrampsTranslations#gettext(). |
| 123 | |
| 124 | LOGscip-python python gramps 6.0.7 `gramps.gen.db.generic`/LOG. = loggingscip-python python python-stdlib 3.11 logging/__init__:.getLoggerscip-python python python-stdlib 3.11 logging/getLogger().(DBLOGNAMEscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBLOGNAME.) |
| 125 | |
| 126 | SIGBASEscip-python python gramps 6.0.7 `gramps.gen.db.generic`/SIGBASE. = ( |
| 127 | "person", |
| 128 | "family", |
| 129 | "source", |
| 130 | "event", |
| 131 | "media", |
| 132 | "place", |
| 133 | "repository", |
| 134 | "reference", |
| 135 | "note", |
| 136 | "tag", |
| 137 | "citation", |
| 138 | ) |
| 139 | |
| 140 | |
| 141 | # ------------------------------------------------------------------------ |
| 142 | # |
| 143 | # DbGenericUndo class |
| 144 | # |
| 145 | # ------------------------------------------------------------------------ |
| 146 | class DbGenericUndoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#(DbUndoscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#): |
| 147 | """ |
| 148 | Generic undo/redo handler |
| 149 | """ |
| 150 | |
| 151 | def __init__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(self), grampsdbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(grampsdb), pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(path)): |
| 152 | superscip-python python python-stdlib 3.11 builtins/super#().__init__scip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#__init__().(grampsdbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(grampsdb)) |
| 153 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__init__().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb. = [] |
| 154 | |
| 155 | def openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#open().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#open().(self), valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#open().(value)=None): |
| 156 | """ |
| 157 | Open the backing storage. Needs to be overridden in the derived |
| 158 | class. |
| 159 | """ |
| 160 | |
| 161 | def closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#close().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#close().(self)): |
| 162 | """ |
| 163 | Close the backing storage. Needs to be overridden in the derived |
| 164 | class. |
| 165 | """ |
| 166 | |
| 167 | def appendscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#append().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#append().(self), valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#append().(value)): |
| 168 | """ |
| 169 | Add a new entry on the end. Needs to be overridden in the derived |
| 170 | class. |
| 171 | """ |
| 172 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#append().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb..appendscip-python python python-stdlib 3.11 builtins/list#append().(valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#append().(value)) |
| 173 | |
| 174 | def __getitem__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__getitem__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__getitem__().(self), indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__getitem__().(index)): |
| 175 | """ |
| 176 | Returns an entry by index number. Needs to be overridden in the |
| 177 | derived class. |
| 178 | """ |
| 179 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__getitem__().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb.[indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__getitem__().(index)] |
| 180 | |
| 181 | def __setitem__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(self), indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(index), valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(value)): |
| 182 | """ |
| 183 | Set an entry to a value. Needs to be overridden in the derived class. |
| 184 | """ |
| 185 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb.[indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(index)] = valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__setitem__().(value) |
| 186 | |
| 187 | def __len__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__len__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__len__().(self)): |
| 188 | """ |
| 189 | Returns the number of entries. Needs to be overridden in the derived |
| 190 | class. |
| 191 | """ |
| 192 | return len(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#__len__().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb.) |
| 193 | |
| 194 | def _redoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self), update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(update_history)): |
| 195 | """ |
| 196 | Access the last undone transaction, and revert the data to the state |
| 197 | before the transaction was undone. |
| 198 | """ |
| 199 | txn = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).redoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.popscip-python python python-stdlib 3.11 collections/deque#pop().() |
| 200 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).undoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.appendscip-python python python-stdlib 3.11 collections/deque#append().(txn) |
| 201 | transaction = txn |
| 202 | db = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo# |
| 203 | subitems = transaction.get_recnos() |
| 204 | # sigs[obj_type][trans_type] |
| 205 | sigs = [[[] for trans_type in rangescip-python python python-stdlib 3.11 builtins/range#(3)] for key in rangescip-python python python-stdlib 3.11 builtins/range#(11)] |
| 206 | |
| 207 | # Process all records in the transaction |
| 208 | try: |
| 209 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_begin() |
| 210 | for record_id in subitems: |
| 211 | key, trans_type, handle, __, new_data = picklescip-python python python-stdlib 3.11 pickle/__init__:.loadsscip-python python python-stdlib 3.11 pickle/loads().( |
| 212 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb.[record_id] |
| 213 | ) |
| 214 | |
| 215 | if key == REFERENCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REFERENCE_KEY.: |
| 216 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.undo_reference(new_data, handle) |
| 217 | else: |
| 218 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.undo_data(new_data, handle, key) |
| 219 | sigs[key][trans_type].appendscip-python python python-stdlib 3.11 builtins/list#append().(handle) |
| 220 | # now emit the signals |
| 221 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).undo_sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(sigs, False) |
| 222 | |
| 223 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_commit() |
| 224 | except: |
| 225 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_abort() |
| 226 | raise |
| 227 | |
| 228 | # Notify listeners |
| 229 | if db.undo_callback: |
| 230 | db.undo_callback(_("_Undo %s") % transaction.get_description()) |
| 231 | |
| 232 | if db.redo_callback: |
| 233 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).redo_countscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#redo_count. > 1: |
| 234 | new_transaction = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(self).redoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#[-2] |
| 235 | db.redo_callback(_("_Redo %s") % new_transaction.get_description()) |
| 236 | else: |
| 237 | db.redo_callback(None) |
| 238 | |
| 239 | if update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_redo().(update_history) and db.undo_history_callback: |
| 240 | db.undo_history_callback() |
| 241 | return True |
| 242 | |
| 243 | def _undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self), update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(update_history)): |
| 244 | """ |
| 245 | Access the last committed transaction, and revert the data to the |
| 246 | state before the transaction was committed. |
| 247 | """ |
| 248 | txn = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).undoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.popscip-python python python-stdlib 3.11 collections/deque#pop().() |
| 249 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).redoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.appendscip-python python python-stdlib 3.11 collections/deque#append().(txn) |
| 250 | transaction = txn |
| 251 | db = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo# |
| 252 | subitems = transaction.get_recnos(reverse=True) |
| 253 | # sigs[obj_type][trans_type] |
| 254 | sigs = [[[] for trans_type in rangescip-python python python-stdlib 3.11 builtins/range#(3)] for key in rangescip-python python python-stdlib 3.11 builtins/range#(11)] |
| 255 | |
| 256 | # Process all records in the transaction |
| 257 | try: |
| 258 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_begin() |
| 259 | for record_id in subitems: |
| 260 | key, trans_type, handle, old_data, x = picklescip-python python python-stdlib 3.11 pickle/__init__:.loadsscip-python python python-stdlib 3.11 pickle/loads().( |
| 261 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undodb.[record_id] |
| 262 | ) |
| 263 | |
| 264 | if key == REFERENCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REFERENCE_KEY.: |
| 265 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.undo_reference(old_data, handle) |
| 266 | else: |
| 267 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.undo_data(old_data, handle, key) |
| 268 | sigs[key][trans_type].appendscip-python python python-stdlib 3.11 builtins/list#append().(handle) |
| 269 | # now emit the signals |
| 270 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).undo_sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(sigs, True) |
| 271 | |
| 272 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_commit() |
| 273 | except: |
| 274 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#._txn_abort() |
| 275 | raise |
| 276 | |
| 277 | # Notify listeners |
| 278 | if db.undo_callback: |
| 279 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).undo_countscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#undo_count. > 0: |
| 280 | db.undo_callback(_("_Undo %s") % selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(self).undoqscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#[-1].get_description()) |
| 281 | else: |
| 282 | db.undo_callback(None) |
| 283 | |
| 284 | if db.redo_callback: |
| 285 | db.redo_callback(_("_Redo %s") % transaction.get_description()) |
| 286 | |
| 287 | if update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#_undo().(update_history) and db.undo_history_callback: |
| 288 | db.undo_history_callback() |
| 289 | return True |
| 290 | |
| 291 | def undo_sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(self), sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(sigs), undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo)): |
| 292 | """ |
| 293 | Helper method to undo/redo the signals for changes made |
| 294 | We want to do deletes and adds first |
| 295 | Note that if 'undo' we swap emits |
| 296 | """ |
| 297 | for trans_type in [TXNDELscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNDEL., TXNADDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNADD., TXNUPDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNUPD.]: |
| 298 | for obj_type in rangescip-python python python-stdlib 3.11 builtins/range#(11): |
| 299 | handles = sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(sigs)[obj_type][trans_type] |
| 300 | if handles: |
| 301 | if ( |
| 302 | not undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo) |
| 303 | and trans_type == TXNDELscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNDEL. |
| 304 | or undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo) |
| 305 | and trans_type == TXNADDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNADD. |
| 306 | ): |
| 307 | typ = "-delete" |
| 308 | else: |
| 309 | # don't update a handle if its been deleted, and note |
| 310 | # that 'deleted' handles are in the 'add' list if we |
| 311 | # are undoing |
| 312 | handles = [ |
| 313 | handle |
| 314 | for handle in handles |
| 315 | if handle not in sigsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(sigs)[obj_type][TXNADDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNADD. if undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo) else TXNDELscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNDEL.] |
| 316 | ] |
| 317 | if ((not undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo)) and trans_type == TXNADDscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNADD.) or ( |
| 318 | undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(undo) and trans_type == TXNDELscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TXNDEL. |
| 319 | ): |
| 320 | typ = "-add" |
| 321 | else: # TXNUPD |
| 322 | typ = "-update" |
| 323 | if handles: |
| 324 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#undo_sigs().(self).dbscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#.emit(KEY_TO_NAME_MAPscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/KEY_TO_NAME_MAP.[obj_type] + typ, (handles,)) |
| 325 | |
| 326 | |
| 327 | # ------------------------------------------------------------------------ |
| 328 | # |
| 329 | # Cursor class |
| 330 | # |
| 331 | # ------------------------------------------------------------------------ |
| 332 | class Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 333 | """ |
| 334 | Simple iteration handler |
| 335 | """ |
| 336 | |
| 337 | def __init__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(self), iteratorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(iterator)): |
| 338 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(self).iteratorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iterator. = iteratorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(iterator) |
| 339 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(self)._iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#_iter. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__init__().(self).__iter__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__iter__().() |
| 340 | |
| 341 | def __enter__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__enter__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__enter__().(self)): |
| 342 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__enter__().(self) |
| 343 | |
| 344 | def __iter__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__iter__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__iter__().(self)): |
| 345 | for handle, data in selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__iter__().(self).iteratorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iterator.(): |
| 346 | yield (handle, data) |
| 347 | |
| 348 | def __next__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__next__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__next__().(self)): |
| 349 | try: |
| 350 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__next__().(self)._iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#_iter..__next__scip-python python python-stdlib 3.11 typing/Generator#__next__().() |
| 351 | except StopIterationscip-python python python-stdlib 3.11 builtins/StopIteration#: |
| 352 | return None |
| 353 | |
| 354 | def __exit__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__exit__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__exit__().(self), *argsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__exit__().(args), **kwargsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__exit__().(kwargs)): |
| 355 | pass |
| 356 | |
| 357 | def iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iter().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iter().(self)): |
| 358 | for handle, data in selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iter().(self).iteratorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#iterator.(): |
| 359 | yield (handle, data) |
| 360 | |
| 361 | def firstscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#first().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#first().(self)): |
| 362 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#first().(self)._iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#_iter. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#first().(self).__iter__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#__iter__().() |
| 363 | try: |
| 364 | return nextscip-python python python-stdlib 3.11 builtins/next().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#first().(self)._iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#_iter.) |
| 365 | except: |
| 366 | return |
| 367 | |
| 368 | def nextscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#next().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#next().(self)): |
| 369 | try: |
| 370 | return nextscip-python python python-stdlib 3.11 builtins/next().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#next().(self)._iterscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#_iter.) |
| 371 | except: |
| 372 | return |
| 373 | |
| 374 | def closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#close().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#close().(self)): |
| 375 | pass |
| 376 | |
| 377 | |
| 378 | # ------------------------------------------------------------------------ |
| 379 | # |
| 380 | # DbGeneric class |
| 381 | # |
| 382 | # ------------------------------------------------------------------------ |
| 383 | |
| 384 | |
| 385 | class DbGenericscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#(DbWriteBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#, DbReadBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#, UpdateCallbackscip-python python gramps 6.0.7 `gramps.gen.updatecallback`/UpdateCallback#, Callbackscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#): |
| 386 | """ |
| 387 | A Gramps Database Backend. This replicates the grampsdb functions. |
| 388 | """ |
| 389 | |
| 390 | __signals__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__signals__.: dictscip-python python python-stdlib 3.11 builtins/dict#[strscip-python python python-stdlib 3.11 builtins/str#, Anyscip-python python python-stdlib 3.11 typing/Any.] = dictscip-python python python-stdlib 3.11 builtins/dict#( |
| 391 | (obj + "-" + op, signal) |
| 392 | for obj in [ |
| 393 | "person", |
| 394 | "family", |
| 395 | "event", |
| 396 | "place", |
| 397 | "repository", |
| 398 | "source", |
| 399 | "citation", |
| 400 | "media", |
| 401 | "note", |
| 402 | "tag", |
| 403 | ] |
| 404 | for op, signal in zipscip-python python python-stdlib 3.11 builtins/zip#( |
| 405 | ["add", "update", "delete", "rebuild"], [(listscip-python python python-stdlib 3.11 builtins/list#,), (listscip-python python python-stdlib 3.11 builtins/list#,), (listscip-python python python-stdlib 3.11 builtins/list#,), None] |
| 406 | ) |
| 407 | ) |
| 408 | |
| 409 | # 2. Signals for long operations |
| 410 | __signals__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__signals__..updatescip-python python python-stdlib 3.11 typing/MutableMapping#update().( |
| 411 | ("long-op-" + op, signal) |
| 412 | for op, signal in zipscip-python python python-stdlib 3.11 builtins/zip#(["start", "heartbeat", "end"], [(objectscip-python python python-stdlib 3.11 builtins/object#,), None, None]) |
| 413 | ) |
| 414 | |
| 415 | # 3. Special signal for change in home person |
| 416 | __signals__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__signals__.["home-person-changed"] = None |
| 417 | |
| 418 | # 4. Signal for change in person group name, parameters are |
| 419 | __signals__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__signals__.["person-groupname-rebuild"] = (strscip-python python python-stdlib 3.11 builtins/str#, strscip-python python python-stdlib 3.11 builtins/str#) |
| 420 | |
| 421 | __callback_mapscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__callback_map. = {} |
| 422 | |
| 423 | VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION. = (21, 0, 0) |
| 424 | |
| 425 | def __init__scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self), directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(directory)=None): |
| 426 | DbReadBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#.__init__scip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)) |
| 427 | DbWriteBasescip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#.__init__scip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)) |
| 428 | Callbackscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#.__init__scip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)) |
| 429 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).__tablesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__tables. = { |
| 430 | "Person": { |
| 431 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_person_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle()., |
| 432 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_person_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id()., |
| 433 | "class_func": Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#, |
| 434 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_person_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_cursor()., |
| 435 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_person_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_person_handles()., |
| 436 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person()., |
| 437 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person()., |
| 438 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_peoplescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_people()., |
| 439 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_person_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_gramps_ids()., |
| 440 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_person_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle()., |
| 441 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_person_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id()., |
| 442 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_peoplescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_people()., |
| 443 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_person_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data()., |
| 444 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_person_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data()., |
| 445 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person()., |
| 446 | }, |
| 447 | "Family": { |
| 448 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_family_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle()., |
| 449 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_family_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id()., |
| 450 | "class_func": Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#, |
| 451 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_family_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_cursor()., |
| 452 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_family_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_family_handles()., |
| 453 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family()., |
| 454 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family()., |
| 455 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_familiesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_families()., |
| 456 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_family_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_gramps_ids()., |
| 457 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_family_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle()., |
| 458 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_family_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id()., |
| 459 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_familiesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_families()., |
| 460 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_family_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data()., |
| 461 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_family_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data()., |
| 462 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family()., |
| 463 | }, |
| 464 | "Source": { |
| 465 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_source_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle()., |
| 466 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_source_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id()., |
| 467 | "class_func": Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#, |
| 468 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_source_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_cursor()., |
| 469 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_source_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_source_handles()., |
| 470 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source()., |
| 471 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source()., |
| 472 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_sourcesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_sources()., |
| 473 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_source_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_gramps_ids()., |
| 474 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_source_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle()., |
| 475 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_source_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id()., |
| 476 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_sourcesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_sources()., |
| 477 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_source_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data()., |
| 478 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_source_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data()., |
| 479 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source()., |
| 480 | }, |
| 481 | "Citation": { |
| 482 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_citation_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle()., |
| 483 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_citation_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id()., |
| 484 | "class_func": Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#, |
| 485 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_citation_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_cursor()., |
| 486 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_citation_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_citation_handles()., |
| 487 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation()., |
| 488 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation()., |
| 489 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_citationsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citations()., |
| 490 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_citation_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_gramps_ids()., |
| 491 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_citation_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle()., |
| 492 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_citation_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id()., |
| 493 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_citationsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_citations()., |
| 494 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_citation_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data()., |
| 495 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_citation_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data()., |
| 496 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation()., |
| 497 | }, |
| 498 | "Event": { |
| 499 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_event_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle()., |
| 500 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_event_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id()., |
| 501 | "class_func": Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#, |
| 502 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_event_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_cursor()., |
| 503 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_event_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_event_handles()., |
| 504 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event()., |
| 505 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event()., |
| 506 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_eventsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_events()., |
| 507 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_event_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_gramps_ids()., |
| 508 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_event_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle()., |
| 509 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_event_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id()., |
| 510 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_eventsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_events()., |
| 511 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_event_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data()., |
| 512 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_event_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data()., |
| 513 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event()., |
| 514 | }, |
| 515 | "Media": { |
| 516 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_media_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle()., |
| 517 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_media_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id()., |
| 518 | "class_func": Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#, |
| 519 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_media_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_cursor()., |
| 520 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_media_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_media_handles()., |
| 521 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media()., |
| 522 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media()., |
| 523 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media()., |
| 524 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_media_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_gramps_ids()., |
| 525 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_media_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle()., |
| 526 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_media_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id()., |
| 527 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_media()., |
| 528 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_media_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data()., |
| 529 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_media_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data()., |
| 530 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media()., |
| 531 | }, |
| 532 | "Place": { |
| 533 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_place_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle()., |
| 534 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_place_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id()., |
| 535 | "class_func": Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#, |
| 536 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_place_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_cursor()., |
| 537 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_place_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_place_handles()., |
| 538 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place()., |
| 539 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place()., |
| 540 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_placesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_places()., |
| 541 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_place_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_gramps_ids()., |
| 542 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_place_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle()., |
| 543 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_place_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id()., |
| 544 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_placesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_places()., |
| 545 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_place_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data()., |
| 546 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_place_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data()., |
| 547 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place()., |
| 548 | }, |
| 549 | "Repository": { |
| 550 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_repository_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle()., |
| 551 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_repository_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id()., |
| 552 | "class_func": Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#, |
| 553 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_repository_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_cursor()., |
| 554 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_repository_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_repository_handles()., |
| 555 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository()., |
| 556 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository()., |
| 557 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_repositoriesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repositories()., |
| 558 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_repository_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_gramps_ids()., |
| 559 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_repository_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle()., |
| 560 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_repository_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id()., |
| 561 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_repositoriesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_repositories()., |
| 562 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_repository_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data()., |
| 563 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_repository_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data()., |
| 564 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository()., |
| 565 | }, |
| 566 | "Note": { |
| 567 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_note_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle()., |
| 568 | "gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_note_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id()., |
| 569 | "class_func": Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#, |
| 570 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_note_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_cursor()., |
| 571 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_note_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_note_handles()., |
| 572 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note()., |
| 573 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note()., |
| 574 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_notesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_notes()., |
| 575 | "ids_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_note_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_gramps_ids()., |
| 576 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_note_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle()., |
| 577 | "has_gramps_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_note_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id()., |
| 578 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_notesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_notes()., |
| 579 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_note_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data()., |
| 580 | "raw_id_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._get_raw_note_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data()., |
| 581 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note()., |
| 582 | }, |
| 583 | "Tag": { |
| 584 | "handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_tag_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle()., |
| 585 | "gramps_id_func": None, |
| 586 | "class_func": Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#, |
| 587 | "cursor_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_tag_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_cursor()., |
| 588 | "handles_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_tag_handlesscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbReadBase#get_tag_handles()., |
| 589 | "add_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).add_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag()., |
| 590 | "commit_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).commit_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag()., |
| 591 | "has_handle_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_tag_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle()., |
| 592 | "iter_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).iter_tagsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tags()., |
| 593 | "count_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_number_of_tagsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_tags()., |
| 594 | "raw_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).get_raw_tag_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data()., |
| 595 | "del_func": selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).remove_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag()., |
| 596 | }, |
| 597 | } |
| 598 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. = None |
| 599 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#path. = None |
| 600 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).full_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#full_name. = None |
| 601 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).brief_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#brief_name. = None |
| 602 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#readonly. = False |
| 603 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).db_is_openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_is_open. = False |
| 604 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).name_formatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_formats. = [] |
| 605 | # Bookmarks: |
| 606 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 607 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).family_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 608 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).event_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 609 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).place_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 610 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).citation_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 611 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).source_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 612 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).repo_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repo_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 613 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).media_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 614 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).note_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_bookmarks. = DbBookmarksscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#() |
| 615 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_person_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().("I%04d") |
| 616 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_media_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().("O%04d") |
| 617 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_family_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().("F%04d") |
| 618 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_citation_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().("C%04d") |
| 619 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_source_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().("S%04d") |
| 620 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_place_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().("P%04d") |
| 621 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_event_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().("E%04d") |
| 622 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_repository_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().("R%04d") |
| 623 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).set_note_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().("N%04d") |
| 624 | # Custom type values |
| 625 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 626 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).family_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_attributes. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 627 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).individual_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#individual_attributes. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 628 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 629 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).marker_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#marker_names. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 630 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).child_ref_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#child_ref_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 631 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).family_rel_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_rel_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 632 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 633 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 634 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#origin_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 635 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 636 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 637 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_media_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 638 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 639 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 640 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).event_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_attributes. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 641 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_types. = setscip-python python python-stdlib 3.11 builtins/set#() |
| 642 | # ---------------------------------- |
| 643 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb. = None |
| 644 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).cmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cmap_index. = 0 |
| 645 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).smap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#smap_index. = 0 |
| 646 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).emap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#emap_index. = 0 |
| 647 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).pmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pmap_index. = 0 |
| 648 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).fmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fmap_index. = 0 |
| 649 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).lmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#lmap_index. = 0 |
| 650 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).omap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#omap_index. = 0 |
| 651 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).rmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rmap_index. = 0 |
| 652 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).nmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nmap_index. = 0 |
| 653 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).undo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_callback. = None |
| 654 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).redo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo_callback. = None |
| 655 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).undo_history_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_history_callback. = None |
| 656 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).modifiedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#modified. = 0 |
| 657 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction. = None |
| 658 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).abort_possiblescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#abort_possible. = True |
| 659 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self)._bm_changesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_bm_changes. = 0 |
| 660 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).has_changedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_changed. = 0 # Also gives commits since startup |
| 661 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list. = [] |
| 662 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats. = GenderStatsscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats#() # can pass in loaded stats as dict |
| 663 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#owner. = Researcherscip-python python gramps 6.0.7 `gramps.gen.lib.researcher`/Researcher#() |
| 664 | if directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(directory): |
| 665 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(self).loadscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__init__().(directory)) |
| 666 | |
| 667 | def _initializescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(self), directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(directory), usernamescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(username), passwordscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(password)): |
| 668 | """ |
| 669 | Initialize database backend. |
| 670 | """ |
| 671 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 672 | |
| 673 | def upgrade_table_for_json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#upgrade_table_for_json_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#upgrade_table_for_json_data().(self), table_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#upgrade_table_for_json_data().(table_name)): |
| 674 | """ |
| 675 | Overload this method to upgrade the table to store data in JSON format |
| 676 | """ |
| 677 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 678 | |
| 679 | def use_json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#use_json_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#use_json_data().(self)): |
| 680 | """ |
| 681 | Overload this method to check if the database stores objects in JSON format |
| 682 | """ |
| 683 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 684 | |
| 685 | def __check_readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(self), namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(name)): |
| 686 | """ |
| 687 | Return True if we don't have read/write access to the database, |
| 688 | otherwise return False (that is, we DO have read/write access) |
| 689 | """ |
| 690 | # In-memory databases always allow write access. |
| 691 | if namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(name) == ":memory:": |
| 692 | return False |
| 693 | |
| 694 | # See if we write to the target directory at all? |
| 695 | if not osscip-python python python-stdlib 3.11 os/__init__:.accessscip-python python python-stdlib 3.11 os/access().(namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(name), osscip-python python python-stdlib 3.11 os/__init__:.W_OKscip-python python python-stdlib 3.11 os/W_OK.W_OK.): |
| 696 | return True |
| 697 | |
| 698 | # See if we lack write access to the database file |
| 699 | path = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 genericpath/exists().(namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(name), "sqlite.db") |
| 700 | if osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..isfilescip-python python python-stdlib 3.11 genericpath/exists().(path) and not osscip-python python python-stdlib 3.11 os/__init__:.accessscip-python python python-stdlib 3.11 os/access().(path, osscip-python python python-stdlib 3.11 os/__init__:.W_OKscip-python python python-stdlib 3.11 os/W_OK.W_OK.): |
| 701 | return True |
| 702 | |
| 703 | # All tests passed. Inform caller that we are NOT read only |
| 704 | return False |
| 705 | |
| 706 | def loadscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().( |
| 707 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self), |
| 708 | directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory), |
| 709 | callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(callback)=None, |
| 710 | modescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(mode)=DBMODE_Wscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBMODE_W., |
| 711 | force_schema_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(force_schema_upgrade)=False, |
| 712 | force_bsddb_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(force_bsddb_upgrade)=False, |
| 713 | force_bsddb_downgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(force_bsddb_downgrade)=False, |
| 714 | force_python_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(force_python_upgrade)=False, |
| 715 | updatescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(update)=True, |
| 716 | usernamescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(username)=None, |
| 717 | passwordscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(password)=None, |
| 718 | json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(json_data)=True, |
| 719 | ): |
| 720 | """ |
| 721 | If update is False: then don't update any files |
| 722 | """ |
| 723 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).__check_readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__check_readonly().(directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory)): |
| 724 | modescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(mode) = DBMODE_Rscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBMODE_R. |
| 725 | |
| 726 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#readonly. = modescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(mode) == DBMODE_Rscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBMODE_R. |
| 727 | |
| 728 | if not selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#readonly. and directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory) != ":memory:": |
| 729 | write_lock_filescip-python python gramps 6.0.7 `gramps.gen.db.utils`/write_lock_file().(directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory)) |
| 730 | |
| 731 | # run backend-specific code: |
| 732 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._initializescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_initialize().(directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory), usernamescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(username), passwordscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(password)) |
| 733 | |
| 734 | need_to_set_metadata = False |
| 735 | if not selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._schema_exists(): |
| 736 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._create_schema(json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(json_data)) |
| 737 | need_to_set_metadata = True |
| 738 | |
| 739 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).use_json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#use_json_data().(): |
| 740 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).set_serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().("json") |
| 741 | else: |
| 742 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).set_serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().("blob") |
| 743 | |
| 744 | if need_to_set_metadata: |
| 745 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("version", strscip-python python python-stdlib 3.11 builtins/str#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0])) |
| 746 | |
| 747 | # Load metadata |
| 748 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).name_formatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_formats. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("name_formats") |
| 749 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#owner. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("researcher", defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(default)=Researcherscip-python python gramps 6.0.7 `gramps.gen.lib.researcher`/Researcher#()) |
| 750 | |
| 751 | # Load bookmarks |
| 752 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("bookmarks")) |
| 753 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).family_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("family_bookmarks")) |
| 754 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).event_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("event_bookmarks")) |
| 755 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).source_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("source_bookmarks")) |
| 756 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).citation_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("citation_bookmarks")) |
| 757 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).repo_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repo_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("repo_bookmarks")) |
| 758 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).media_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("media_bookmarks")) |
| 759 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).place_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("place_bookmarks")) |
| 760 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).note_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_bookmarks..loadscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#load().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("note_bookmarks")) |
| 761 | |
| 762 | # Custom type values |
| 763 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("event_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 764 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).family_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_attributes. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("fattr_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 765 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).individual_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#individual_attributes. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("pattr_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 766 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("sattr_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 767 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).marker_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#marker_names. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("marker_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 768 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).child_ref_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#child_ref_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("child_refs", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 769 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).family_rel_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_rel_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("family_rels", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 770 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("event_roles", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 771 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("name_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 772 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#origin_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("origin_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 773 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("repo_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 774 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("note_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 775 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_media_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("sm_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 776 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("url_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 777 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("mattr_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 778 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).event_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_attributes. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("eattr_names", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 779 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_types. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("place_types", setscip-python python python-stdlib 3.11 builtins/set#()) |
| 780 | |
| 781 | # surname list |
| 782 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).get_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_surname_list().() |
| 783 | |
| 784 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._set_save_pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory)) |
| 785 | |
| 786 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. and selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. != ":memory:": |
| 787 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).undologscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undolog. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 genericpath/exists().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory., DBUNDOFNscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/DBUNDOFN.) |
| 788 | else: |
| 789 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).undologscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undolog. = None |
| 790 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._create_undo_managerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_create_undo_manager().() |
| 791 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb..openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#open().() |
| 792 | |
| 793 | # Other items to load |
| 794 | gstats = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).get_gender_statsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_gender_stats().() |
| 795 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats. = GenderStatsscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats#(gstats) |
| 796 | |
| 797 | # Indexes: |
| 798 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).cmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("cmap_index", 0) |
| 799 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).smap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#smap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("smap_index", 0) |
| 800 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).emap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#emap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("emap_index", 0) |
| 801 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).pmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("pmap_index", 0) |
| 802 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).fmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("fmap_index", 0) |
| 803 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).lmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#lmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("lmap_index", 0) |
| 804 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).omap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#omap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("omap_index", 0) |
| 805 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).rmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("rmap_index", 0) |
| 806 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).nmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nmap_index. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("nmap_index", 0) |
| 807 | |
| 808 | if need_to_set_metadata: |
| 809 | # for new db we always need blob metadata to allow prior Gramps versions |
| 810 | # to make it to the downgrade version check |
| 811 | # Note: downgrade check only works from v5.1.2 and later on sqlite |
| 812 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).set_serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().("blob") |
| 813 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).has_changedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_changed. = 1 # to make sure genderstats gets saved |
| 814 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._set_all_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().() |
| 815 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).use_json_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#use_json_data().(): |
| 816 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).set_serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().("json") |
| 817 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._set_all_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().() |
| 818 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).has_changedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_changed. = 0 # number of commits |
| 819 | |
| 820 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).db_is_openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_is_open. = True |
| 821 | |
| 822 | # Check on db version to see if we need upgrade or too new |
| 823 | dbversion = intscip-python python python-stdlib 3.11 builtins/int#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("version", defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(default)="0")) |
| 824 | if dbversion > selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0]: |
| 825 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().() |
| 826 | raise DbVersionErrorscip-python python gramps 6.0.7 `gramps.gen.db.exceptions`/DbVersionError#(dbversion, 18, selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0]) |
| 827 | |
| 828 | if not selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#readonly. and dbversion < selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0]: |
| 829 | LOGscip-python python gramps 6.0.7 `gramps.gen.db.generic`/LOG..debugscip-python python python-stdlib 3.11 logging/Logger#debug().( |
| 830 | "Schema upgrade required from %s to %s", dbversion, selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0] |
| 831 | ) |
| 832 | if force_schema_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(force_schema_upgrade): |
| 833 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self)._gramps_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(dbversion, directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(directory), callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(callback)) |
| 834 | else: |
| 835 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(updatescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(update)=False) |
| 836 | raise DbUpgradeRequiredErrorscip-python python gramps 6.0.7 `gramps.gen.db.exceptions`/DbUpgradeRequiredError#(dbversion, selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#load().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0]) |
| 837 | |
| 838 | def _create_undo_managerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_create_undo_manager().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_create_undo_manager().(self)): |
| 839 | """ |
| 840 | Create the undo manager. |
| 841 | """ |
| 842 | return DbGenericUndoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGenericUndo#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_create_undo_manager().(self), selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_create_undo_manager().(self).undologscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undolog.) |
| 843 | |
| 844 | def _closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_close().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_close().(self)): |
| 845 | """ |
| 846 | Close database backend. |
| 847 | """ |
| 848 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 849 | |
| 850 | def closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self), updatescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(update)=True, userscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(user)=None): |
| 851 | """ |
| 852 | Close the database. |
| 853 | if update is False, don't change access times, etc. |
| 854 | """ |
| 855 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. != ":memory:": |
| 856 | if updatescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(update) and not selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self).readonlyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#readonly.: |
| 857 | # This is just a dummy file to indicate last modified time of |
| 858 | # the database for gramps.cli.clidbman: |
| 859 | filename = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 genericpath/exists().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory., "meta_data.db") |
| 860 | Pathscip-python python python-stdlib 3.11 pathlib/Path#(filename).touchscip-python python python-stdlib 3.11 pathlib/Path#touch().() |
| 861 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self)._set_all_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().() |
| 862 | |
| 863 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self)._closescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_close().() |
| 864 | |
| 865 | try: |
| 866 | clear_lock_filescip-python python gramps 6.0.7 `gramps.gen.db.utils`/clear_lock_file().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self).get_save_pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_save_path().()) |
| 867 | except IOErrorscip-python python python-stdlib 3.11 builtins/IOError#: |
| 868 | pass |
| 869 | |
| 870 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self).db_is_openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_is_open. = False |
| 871 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#close().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. = None |
| 872 | |
| 873 | def is_openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#is_open().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#is_open().(self)): |
| 874 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#is_open().(self).db_is_openscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_is_open. |
| 875 | |
| 876 | def _set_all_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)): |
| 877 | """ |
| 878 | sets all the metadata |
| 879 | """ |
| 880 | # Save metadata |
| 881 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("version", strscip-python python python-stdlib 3.11 builtins/str#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0])) |
| 882 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("name_formats", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).name_formatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_formats.) |
| 883 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("researcher", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#owner.) |
| 884 | |
| 885 | # Bookmarks |
| 886 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 887 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("family_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).family_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 888 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("event_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).event_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 889 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("place_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).place_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 890 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("repo_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).repo_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repo_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 891 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("source_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).source_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 892 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("citation_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).citation_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 893 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("media_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).media_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 894 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("note_bookmarks", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).note_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_bookmarks..getscip-python python gramps 6.0.7 `gramps.gen.db.bookmarks`/DbBookmarks#get().()) |
| 895 | |
| 896 | # Custom type values, sets |
| 897 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("event_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names.) |
| 898 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("fattr_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).family_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_attributes.) |
| 899 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("pattr_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).individual_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#individual_attributes.) |
| 900 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("sattr_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes.) |
| 901 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("marker_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).marker_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#marker_names.) |
| 902 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("child_refs", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).child_ref_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#child_ref_types.) |
| 903 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("family_rels", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).family_rel_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_rel_types.) |
| 904 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("event_roles", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names.) |
| 905 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("name_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_types.) |
| 906 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("origin_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#origin_types.) |
| 907 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("repo_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_types.) |
| 908 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("note_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_types.) |
| 909 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("sm_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_media_types.) |
| 910 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("url_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types.) |
| 911 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("mattr_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes.) |
| 912 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("eattr_names", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).event_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_attributes.) |
| 913 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("place_types", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_types.) |
| 914 | |
| 915 | # Save misc items: |
| 916 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).has_changedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_changed.: |
| 917 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).save_gender_statsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#save_gender_stats().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats.) |
| 918 | |
| 919 | # Indexes: |
| 920 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("cmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).cmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cmap_index.) |
| 921 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("smap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).smap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#smap_index.) |
| 922 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("emap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).emap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#emap_index.) |
| 923 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("pmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).pmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pmap_index.) |
| 924 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("fmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).fmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fmap_index.) |
| 925 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("lmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).lmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#lmap_index.) |
| 926 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("omap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).omap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#omap_index.) |
| 927 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("rmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).rmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rmap_index.) |
| 928 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("nmap_index", selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_all_metadata().(self).nmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nmap_index.) |
| 929 | |
| 930 | def get_dbidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbid().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbid().(self)): |
| 931 | """ |
| 932 | We use the file directory name as the unique ID for |
| 933 | this database on this computer. |
| 934 | """ |
| 935 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbid().(self).brief_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#brief_name. |
| 936 | |
| 937 | def get_dbnamescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbname().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbname().(self)): |
| 938 | """ |
| 939 | In DbGeneric, the database is in a text file at the path |
| 940 | """ |
| 941 | name = None |
| 942 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbname().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory.: |
| 943 | filepath = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 genericpath/exists().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_dbname().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory., "name.txt") |
| 944 | try: |
| 945 | with openscip-python python python-stdlib 3.11 builtins/open().(filepath, "r", encodingscip-python python python-stdlib 3.11 builtins/open().(encoding)="utf8") as name_file: |
| 946 | name = name_file.readlinescip-python python python-stdlib 3.11 io/TextIOWrapper#readline().().stripscip-python python python-stdlib 3.11 builtins/str#strip().() |
| 947 | except (OSErrorscip-python python python-stdlib 3.11 builtins/OSError#, IOErrorscip-python python python-stdlib 3.11 builtins/IOError#) as msg: |
| 948 | LOGscip-python python gramps 6.0.7 `gramps.gen.db.generic`/LOG..errorscip-python python python-stdlib 3.11 logging/Logger#error().(strscip-python python python-stdlib 3.11 builtins/str#(msg)) |
| 949 | return name |
| 950 | |
| 951 | def version_supportedscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#version_supported().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#version_supported().(self)): |
| 952 | """Return True when the file has a supported version.""" |
| 953 | return True |
| 954 | |
| 955 | def _get_table_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(self), tablescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(table)=None, funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(func)=None): |
| 956 | """ |
| 957 | Private implementation of get_table_func. |
| 958 | """ |
| 959 | if tablescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(table) is None: |
| 960 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(self).__tablesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__tables..keysscip-python python python-stdlib 3.11 builtins/dict#keys().()) |
| 961 | if funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(func) is None: |
| 962 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(self).__tablesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__tables.[tablescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(table)] # dict of functions |
| 963 | if funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(func) in selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(self).__tablesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__tables.[tablescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(table)].keysscip-python python python-stdlib 3.11 builtins/dict#keys().(): |
| 964 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(self).__tablesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__tables.[tablescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(table)][funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(func)] |
| 965 | return None |
| 966 | |
| 967 | def _txn_beginscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_begin().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_begin().(self)): |
| 968 | """ |
| 969 | Lowlevel interface to the backend transaction. |
| 970 | Executes a db BEGIN; |
| 971 | """ |
| 972 | |
| 973 | def _txn_commitscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_commit().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_commit().(self)): |
| 974 | """ |
| 975 | Lowlevel interface to the backend transaction. |
| 976 | Executes a db END; |
| 977 | """ |
| 978 | |
| 979 | def _txn_abortscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_abort().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_txn_abort().(self)): |
| 980 | """ |
| 981 | Lowlevel interface to the backend transaction. |
| 982 | Executes a db ROLLBACK; |
| 983 | """ |
| 984 | |
| 985 | def transaction_beginscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(self), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(transaction)): |
| 986 | """ |
| 987 | Transactions are handled automatically by the db layer. |
| 988 | """ |
| 989 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(self).transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction. = transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(transaction) |
| 990 | return transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#transaction_begin().(transaction) |
| 991 | |
| 992 | def _get_metadata_keysscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata_keys().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata_keys().(self)): |
| 993 | """ |
| 994 | Get all of the metadata setting names from the |
| 995 | database. |
| 996 | """ |
| 997 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 998 | |
| 999 | def _get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(self), keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(key), defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(default)=[]): |
| 1000 | """ |
| 1001 | Get an item from the database. |
| 1002 | |
| 1003 | Default is an empty list, which is a mutable and |
| 1004 | thus a bad default (pylint will complain). |
| 1005 | |
| 1006 | However, it is just used as a value, and not altered, so |
| 1007 | its use here is ok. |
| 1008 | """ |
| 1009 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1010 | |
| 1011 | def _set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().(self), keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().(key), valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().(value), use_txnscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().(use_txn)=True): |
| 1012 | """ |
| 1013 | key: string |
| 1014 | value: item, will be serialized here |
| 1015 | |
| 1016 | Note: if use_txn, then begin/commit txn |
| 1017 | """ |
| 1018 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1019 | |
| 1020 | ################################################################ |
| 1021 | # |
| 1022 | # set_*_id_prefix methods |
| 1023 | # |
| 1024 | ################################################################ |
| 1025 | |
| 1026 | @staticmethodscip-python python python-stdlib 3.11 builtins/staticmethod# |
| 1027 | def _validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val), defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(default)): |
| 1028 | if isinstance(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val), strscip-python python python-stdlib 3.11 builtins/str#) and valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val): |
| 1029 | try: |
| 1030 | _ = valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val) % 1 |
| 1031 | except TypeErrorscip-python python python-stdlib 3.11 builtins/TypeError#: # missing conversion specifier |
| 1032 | prefix_var = valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val) + "%d" |
| 1033 | except ValueErrorscip-python python python-stdlib 3.11 builtins/ValueError#: # incomplete format |
| 1034 | prefix_var = defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(default) + "%04d" |
| 1035 | else: |
| 1036 | prefix_var = valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(val) # OK as given |
| 1037 | else: |
| 1038 | prefix_var = defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(default) + "%04d" # not a string or empty string |
| 1039 | return prefix_var |
| 1040 | |
| 1041 | @staticmethodscip-python python python-stdlib 3.11 builtins/staticmethod# |
| 1042 | def __id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(id_patternscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(id_pattern)): |
| 1043 | """ |
| 1044 | Return a method that accepts a Gramps ID and adjusts it to the users |
| 1045 | format. |
| 1046 | """ |
| 1047 | pattern_match = rescip-python python python-stdlib 3.11 re/__init__:.matchscip-python python python-stdlib 3.11 re/match().(r"(.*)%[0 ](\d+)[diu]$", id_patternscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(id_pattern)) |
| 1048 | if pattern_match: |
| 1049 | str_prefix = pattern_match.groupscip-python python python-stdlib 3.11 re/Match#group().(1) |
| 1050 | |
| 1051 | # nr_width = int(pattern_match.group(2)) |
| 1052 | def closure_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id)): |
| 1053 | if gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id) and gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id).startswith(str_prefix): |
| 1054 | id_number = gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id)[len(str_prefix) :] |
| 1055 | if id_number.isdigit(): |
| 1056 | id_value = intscip-python python python-stdlib 3.11 builtins/int#(id_number, 10) |
| 1057 | # if len(str(id_value)) > nr_width: |
| 1058 | # # The ID to be imported is too large to fit in the |
| 1059 | # # users format. For now just create a new ID, |
| 1060 | # # because that is also what happens with IDs that |
| 1061 | # # are identical to IDs already in the database. If |
| 1062 | # # the problem of colliding import and already |
| 1063 | # # present IDs is solved the code here also needs |
| 1064 | # # some solution. |
| 1065 | # gramps_id = id_pattern % 1 |
| 1066 | # else: |
| 1067 | gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id) = id_patternscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(id_pattern) % id_value |
| 1068 | return gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id) |
| 1069 | |
| 1070 | else: |
| 1071 | |
| 1072 | def closure_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id)): |
| 1073 | return gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func().(gramps_id) |
| 1074 | |
| 1075 | return closure_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#closure_func(). |
| 1076 | |
| 1077 | def set_person_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(val)): |
| 1078 | """ |
| 1079 | Set the naming template for Gramps Person ID values. |
| 1080 | |
| 1081 | The string is expected to be in the form of a simple text string, or |
| 1082 | in a format that contains a C/Python style format string using %d, |
| 1083 | such as I%d or I%04d. |
| 1084 | """ |
| 1085 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self).person_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#person_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(val), "I") |
| 1086 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self).id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#id2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(self).person_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#person_prefix.) |
| 1087 | |
| 1088 | def set_citation_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(val)): |
| 1089 | """ |
| 1090 | Set the naming template for Gramps Citation ID values. |
| 1091 | |
| 1092 | The string is expected to be in the form of a simple text string, or |
| 1093 | in a format that contains a C/Python style format string using %d, |
| 1094 | such as C%d or C%04d. |
| 1095 | """ |
| 1096 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self).citation_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(val), "C") |
| 1097 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self).cid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(self).citation_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_prefix.) |
| 1098 | |
| 1099 | def set_source_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(val)): |
| 1100 | """ |
| 1101 | Set the naming template for Gramps Source ID values. |
| 1102 | |
| 1103 | The string is expected to be in the form of a simple text string, or |
| 1104 | in a format that contains a C/Python style format string using %d, |
| 1105 | such as S%d or S%04d. |
| 1106 | """ |
| 1107 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self).source_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(val), "S") |
| 1108 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self).sid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#sid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(self).source_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_prefix.) |
| 1109 | |
| 1110 | def set_media_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(val)): |
| 1111 | """ |
| 1112 | Set the naming template for Gramps Media ID values. |
| 1113 | |
| 1114 | The string is expected to be in the form of a simple text string, or |
| 1115 | in a format that contains a C/Python style format string using %d, |
| 1116 | such as O%d or O%04d. |
| 1117 | """ |
| 1118 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self).media_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(val), "O") |
| 1119 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self).oid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#oid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(self).media_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_prefix.) |
| 1120 | |
| 1121 | def set_place_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(val)): |
| 1122 | """ |
| 1123 | Set the naming template for Gramps Place ID values. |
| 1124 | |
| 1125 | The string is expected to be in the form of a simple text string, or |
| 1126 | in a format that contains a C/Python style format string using %d, |
| 1127 | such as P%d or P%04d. |
| 1128 | """ |
| 1129 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self).place_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(val), "P") |
| 1130 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self).pid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(self).place_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_prefix.) |
| 1131 | |
| 1132 | def set_family_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(val)): |
| 1133 | """ |
| 1134 | Set the naming template for Gramps Family ID values. The string is |
| 1135 | expected to be in the form of a simple text string, or in a format |
| 1136 | that contains a C/Python style format string using %d, such as F%d |
| 1137 | or F%04d. |
| 1138 | """ |
| 1139 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self).family_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(val), "F") |
| 1140 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self).fid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(self).family_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_prefix.) |
| 1141 | |
| 1142 | def set_event_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(val)): |
| 1143 | """ |
| 1144 | Set the naming template for Gramps Event ID values. |
| 1145 | |
| 1146 | The string is expected to be in the form of a simple text string, or |
| 1147 | in a format that contains a C/Python style format string using %d, |
| 1148 | such as E%d or E%04d. |
| 1149 | """ |
| 1150 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self).event_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(val), "E") |
| 1151 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self).eid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#eid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(self).event_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_prefix.) |
| 1152 | |
| 1153 | def set_repository_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(val)): |
| 1154 | """ |
| 1155 | Set the naming template for Gramps Repository ID values. |
| 1156 | |
| 1157 | The string is expected to be in the form of a simple text string, or |
| 1158 | in a format that contains a C/Python style format string using %d, |
| 1159 | such as R%d or R%04d. |
| 1160 | """ |
| 1161 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self).repository_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(val), "R") |
| 1162 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self).rid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(self).repository_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_prefix.) |
| 1163 | |
| 1164 | def set_note_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self), valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(val)): |
| 1165 | """ |
| 1166 | Set the naming template for Gramps Note ID values. |
| 1167 | |
| 1168 | The string is expected to be in the form of a simple text string, or |
| 1169 | in a format that contains a C/Python style format string using %d, |
| 1170 | such as N%d or N%04d. |
| 1171 | """ |
| 1172 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self).note_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_prefix. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self)._validated_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_validated_id_prefix().(valscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(val), "N") |
| 1173 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self).nid2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nid2user_format. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self).__id2user_formatscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#__id2user_format().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(self).note_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_prefix.) |
| 1174 | |
| 1175 | def set_prefixesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().( |
| 1176 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(person), mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(media), familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(family), sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(source), citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(citation), placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(place), eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(event), repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(repository), notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(note) |
| 1177 | ): |
| 1178 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_person_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_person_id_prefix().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(person)) |
| 1179 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_media_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_media_id_prefix().(mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(media)) |
| 1180 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_family_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_family_id_prefix().(familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(family)) |
| 1181 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_source_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_source_id_prefix().(sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(source)) |
| 1182 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_citation_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_citation_id_prefix().(citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(citation)) |
| 1183 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_place_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_place_id_prefix().(placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(place)) |
| 1184 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_event_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_event_id_prefix().(eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(event)) |
| 1185 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_repository_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_repository_id_prefix().(repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(repository)) |
| 1186 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(self).set_note_id_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_note_id_prefix().(notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_prefixes().(note)) |
| 1187 | |
| 1188 | ################################################################ |
| 1189 | # |
| 1190 | # find_next_*_gramps_id methods |
| 1191 | # |
| 1192 | ################################################################ |
| 1193 | |
| 1194 | def _find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(self), prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(prefix), map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(obj_key)): |
| 1195 | """ |
| 1196 | Helper function for find_next_<object>_gramps_id methods |
| 1197 | """ |
| 1198 | index = prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(prefix) % map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index) |
| 1199 | while selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(obj_key), index): |
| 1200 | map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index) += 1 |
| 1201 | index = prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(prefix) % map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index) |
| 1202 | map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index) += 1 |
| 1203 | return (map_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().(map_index), index) |
| 1204 | |
| 1205 | def find_next_person_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(self)) -> PersonGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PersonGrampsID.: |
| 1206 | """ |
| 1207 | Return the next available GRAMPS' ID for a Person object based off the |
| 1208 | person ID prefix. |
| 1209 | """ |
| 1210 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(self).pmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1211 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(self).person_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#person_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id().(self).pmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#pmap_index., PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY. |
| 1212 | ) |
| 1213 | return gid |
| 1214 | |
| 1215 | def find_next_place_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(self)) -> PlaceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PlaceGrampsID.: |
| 1216 | """ |
| 1217 | Return the next available GRAMPS' ID for a Place object based off the |
| 1218 | place ID prefix. |
| 1219 | """ |
| 1220 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(self).lmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#lmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1221 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(self).place_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id().(self).lmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#lmap_index., PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY. |
| 1222 | ) |
| 1223 | return gid |
| 1224 | |
| 1225 | def find_next_event_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(self)) -> EventGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/EventGrampsID.: |
| 1226 | """ |
| 1227 | Return the next available GRAMPS' ID for a Event object based off the |
| 1228 | event ID prefix. |
| 1229 | """ |
| 1230 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(self).emap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#emap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1231 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(self).event_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id().(self).emap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#emap_index., EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY. |
| 1232 | ) |
| 1233 | return gid |
| 1234 | |
| 1235 | def find_next_media_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(self)) -> MediaGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/MediaGrampsID.: |
| 1236 | """ |
| 1237 | Return the next available GRAMPS' ID for a Media object based |
| 1238 | off the media object ID prefix. |
| 1239 | """ |
| 1240 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(self).omap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#omap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1241 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(self).media_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id().(self).omap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#omap_index., MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY. |
| 1242 | ) |
| 1243 | return gid |
| 1244 | |
| 1245 | def find_next_citation_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(self)) -> CitationGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/CitationGrampsID.: |
| 1246 | """ |
| 1247 | Return the next available GRAMPS' ID for a Citation object based off the |
| 1248 | citation ID prefix. |
| 1249 | """ |
| 1250 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(self).cmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1251 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(self).citation_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id().(self).cmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#cmap_index., CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY. |
| 1252 | ) |
| 1253 | return gid |
| 1254 | |
| 1255 | def find_next_source_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(self)) -> SourceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/SourceGrampsID.: |
| 1256 | """ |
| 1257 | Return the next available GRAMPS' ID for a Source object based off the |
| 1258 | source ID prefix. |
| 1259 | """ |
| 1260 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(self).smap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#smap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1261 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(self).source_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id().(self).smap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#smap_index., SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY. |
| 1262 | ) |
| 1263 | return gid |
| 1264 | |
| 1265 | def find_next_family_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(self)) -> FamilyGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/FamilyGrampsID.: |
| 1266 | """ |
| 1267 | Return the next available GRAMPS' ID for a Family object based off the |
| 1268 | family ID prefix. |
| 1269 | """ |
| 1270 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(self).fmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1271 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(self).family_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id().(self).fmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#fmap_index., FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY. |
| 1272 | ) |
| 1273 | return gid |
| 1274 | |
| 1275 | def find_next_repository_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(self)) -> RepositoryGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryGrampsID.: |
| 1276 | """ |
| 1277 | Return the next available GRAMPS' ID for a Respository object based |
| 1278 | off the repository ID prefix. |
| 1279 | """ |
| 1280 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(self).rmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1281 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(self).repository_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id().(self).rmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#rmap_index., REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY. |
| 1282 | ) |
| 1283 | return gid |
| 1284 | |
| 1285 | def find_next_note_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(self)) -> NoteGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/NoteGrampsID.: |
| 1286 | """ |
| 1287 | Return the next available GRAMPS' ID for a Note object based off the |
| 1288 | note ID prefix. |
| 1289 | """ |
| 1290 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(self).nmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nmap_index., gid = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(self)._find_next_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_find_next_gramps_id().( |
| 1291 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(self).note_prefixscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_prefix., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id().(self).nmap_indexscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#nmap_index., NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY. |
| 1292 | ) |
| 1293 | return gid |
| 1294 | |
| 1295 | ################################################################ |
| 1296 | # |
| 1297 | # get_number_of_* methods |
| 1298 | # |
| 1299 | ################################################################ |
| 1300 | |
| 1301 | def _get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(obj_key)): |
| 1302 | """ |
| 1303 | Return the number of objects currently in the database. |
| 1304 | """ |
| 1305 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1306 | |
| 1307 | def get_number_of_peoplescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_people().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_people().(self)): |
| 1308 | """ |
| 1309 | Return the number of people currently in the database. |
| 1310 | """ |
| 1311 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_people().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY.) |
| 1312 | |
| 1313 | def get_number_of_eventsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_events().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_events().(self)): |
| 1314 | """ |
| 1315 | Return the number of events currently in the database. |
| 1316 | """ |
| 1317 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_events().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY.) |
| 1318 | |
| 1319 | def get_number_of_placesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_places().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_places().(self)): |
| 1320 | """ |
| 1321 | Return the number of places currently in the database. |
| 1322 | """ |
| 1323 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_places().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY.) |
| 1324 | |
| 1325 | def get_number_of_tagsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_tags().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_tags().(self)): |
| 1326 | """ |
| 1327 | Return the number of tags currently in the database. |
| 1328 | """ |
| 1329 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_tags().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY.) |
| 1330 | |
| 1331 | def get_number_of_familiesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_families().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_families().(self)): |
| 1332 | """ |
| 1333 | Return the number of families currently in the database. |
| 1334 | """ |
| 1335 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_families().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY.) |
| 1336 | |
| 1337 | def get_number_of_notesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_notes().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_notes().(self)): |
| 1338 | """ |
| 1339 | Return the number of notes currently in the database. |
| 1340 | """ |
| 1341 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_notes().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY.) |
| 1342 | |
| 1343 | def get_number_of_citationsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_citations().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_citations().(self)): |
| 1344 | """ |
| 1345 | Return the number of citations currently in the database. |
| 1346 | """ |
| 1347 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_citations().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY.) |
| 1348 | |
| 1349 | def get_number_of_sourcesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_sources().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_sources().(self)): |
| 1350 | """ |
| 1351 | Return the number of sources currently in the database. |
| 1352 | """ |
| 1353 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_sources().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY.) |
| 1354 | |
| 1355 | def get_number_of_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_media().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_media().(self)): |
| 1356 | """ |
| 1357 | Return the number of media objects currently in the database. |
| 1358 | """ |
| 1359 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_media().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY.) |
| 1360 | |
| 1361 | def get_number_of_repositoriesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_repositories().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_repositories().(self)): |
| 1362 | """ |
| 1363 | Return the number of source repositories currently in the database. |
| 1364 | """ |
| 1365 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_repositories().(self)._get_number_ofscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_number_of().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY.) |
| 1366 | |
| 1367 | ################################################################ |
| 1368 | # |
| 1369 | # get_*_gramps_ids methods |
| 1370 | # |
| 1371 | ################################################################ |
| 1372 | |
| 1373 | def _get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(obj_key)): |
| 1374 | """ |
| 1375 | Return a list of Gramps IDs, one ID for each object in the |
| 1376 | database. |
| 1377 | """ |
| 1378 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1379 | |
| 1380 | def get_person_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_gramps_ids().(self)): |
| 1381 | """ |
| 1382 | Return a list of Gramps IDs, one ID for each Person in the |
| 1383 | database. |
| 1384 | """ |
| 1385 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY.) |
| 1386 | |
| 1387 | def get_family_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_gramps_ids().(self)): |
| 1388 | """ |
| 1389 | Return a list of Gramps IDs, one ID for each Family in the |
| 1390 | database. |
| 1391 | """ |
| 1392 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY.) |
| 1393 | |
| 1394 | def get_source_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_gramps_ids().(self)): |
| 1395 | """ |
| 1396 | Return a list of Gramps IDs, one ID for each Source in the |
| 1397 | database. |
| 1398 | """ |
| 1399 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY.) |
| 1400 | |
| 1401 | def get_citation_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_gramps_ids().(self)): |
| 1402 | """ |
| 1403 | Return a list of Gramps IDs, one ID for each Citation in the |
| 1404 | database. |
| 1405 | """ |
| 1406 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY.) |
| 1407 | |
| 1408 | def get_event_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_gramps_ids().(self)): |
| 1409 | """ |
| 1410 | Return a list of Gramps IDs, one ID for each Event in the |
| 1411 | database. |
| 1412 | """ |
| 1413 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY.) |
| 1414 | |
| 1415 | def get_media_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_gramps_ids().(self)): |
| 1416 | """ |
| 1417 | Return a list of Gramps IDs, one ID for each Media in the |
| 1418 | database. |
| 1419 | """ |
| 1420 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY.) |
| 1421 | |
| 1422 | def get_place_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_gramps_ids().(self)): |
| 1423 | """ |
| 1424 | Return a list of Gramps IDs, one ID for each Place in the |
| 1425 | database. |
| 1426 | """ |
| 1427 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY.) |
| 1428 | |
| 1429 | def get_repository_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_gramps_ids().(self)): |
| 1430 | """ |
| 1431 | Return a list of Gramps IDs, one ID for each Repository in the |
| 1432 | database. |
| 1433 | """ |
| 1434 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY.) |
| 1435 | |
| 1436 | def get_note_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_gramps_ids().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_gramps_ids().(self)): |
| 1437 | """ |
| 1438 | Return a list of Gramps IDs, one ID for each Note in the |
| 1439 | database. |
| 1440 | """ |
| 1441 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_gramps_ids().(self)._get_gramps_idsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_gramps_ids().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY.) |
| 1442 | |
| 1443 | ################################################################ |
| 1444 | # |
| 1445 | # get_*_from_handle methods |
| 1446 | # |
| 1447 | ################################################################ |
| 1448 | |
| 1449 | def _get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().( |
| 1450 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(obj_key), obj_classscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(obj_class): Typescip-python python python-stdlib 3.11 typing/Type.[TableObjectTypescip-python python gramps 6.0.7 `gramps.gen.types`/TableObjectType.], handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(handle): AnyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/AnyHandle. |
| 1451 | ) -> TableObjectTypescip-python python gramps 6.0.7 `gramps.gen.types`/TableObjectType.: |
| 1452 | if handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(handle) is None: |
| 1453 | raise HandleErrorscip-python python gramps 6.0.7 `gramps.gen.errors`/HandleError#("Handle is None") |
| 1454 | if not handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(handle): |
| 1455 | raise HandleErrorscip-python python gramps 6.0.7 `gramps.gen.errors`/HandleError#("Handle is empty") |
| 1456 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(obj_key), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(handle)) |
| 1457 | if data: |
| 1458 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, obj_classscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(obj_class)) |
| 1459 | |
| 1460 | raise HandleErrorscip-python python gramps 6.0.7 `gramps.gen.errors`/HandleError#(f"Handle {handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(handle)} not found") |
| 1461 | |
| 1462 | def get_event_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle().(handle): EventHandlescip-python python gramps 6.0.7 `gramps.gen.types`/EventHandle.) -> Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#: |
| 1463 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_handle().(handle)) |
| 1464 | |
| 1465 | def get_family_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle().(handle): FamilyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/FamilyHandle.) -> Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#: |
| 1466 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_handle().(handle)) |
| 1467 | |
| 1468 | def get_repository_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle().(handle): RepositoryHandlescip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryHandle.) -> Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#: |
| 1469 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_handle().(handle)) |
| 1470 | |
| 1471 | def get_person_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(handle): PersonHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PersonHandle.) -> Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#: |
| 1472 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(handle)) |
| 1473 | |
| 1474 | def get_place_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle().(handle): PlaceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PlaceHandle.) -> Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#: |
| 1475 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_handle().(handle)) |
| 1476 | |
| 1477 | def get_citation_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle().(handle): CitationHandlescip-python python gramps 6.0.7 `gramps.gen.types`/CitationHandle.) -> Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#: |
| 1478 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_handle().(handle)) |
| 1479 | |
| 1480 | def get_source_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle().(handle): SourceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/SourceHandle.) -> Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#: |
| 1481 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_handle().(handle)) |
| 1482 | |
| 1483 | def get_note_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle().(handle): NoteHandlescip-python python gramps 6.0.7 `gramps.gen.types`/NoteHandle.) -> Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#: |
| 1484 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_handle().(handle)) |
| 1485 | |
| 1486 | def get_media_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle().(handle): MediaHandlescip-python python gramps 6.0.7 `gramps.gen.types`/MediaHandle.) -> Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#: |
| 1487 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_handle().(handle)) |
| 1488 | |
| 1489 | def get_tag_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle().(handle): TagHandlescip-python python gramps 6.0.7 `gramps.gen.types`/TagHandle.) -> Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#: |
| 1490 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle().(self)._get_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_from_handle().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY., Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#, handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_from_handle().(handle)) |
| 1491 | |
| 1492 | ################################################################ |
| 1493 | # |
| 1494 | # get_*_from_gramps_id methods |
| 1495 | # |
| 1496 | ################################################################ |
| 1497 | |
| 1498 | def get_person_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(gramps_id): PersonGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PersonGrampsID.) -> Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#: |
| 1499 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(self)._get_raw_person_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(gramps_id)) |
| 1500 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#) |
| 1501 | |
| 1502 | def get_family_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(gramps_id): FamilyGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/FamilyGrampsID.) -> Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#: |
| 1503 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(self)._get_raw_family_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(gramps_id)) |
| 1504 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#) |
| 1505 | |
| 1506 | def get_citation_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(gramps_id): CitationGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/CitationGrampsID.) -> Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#: |
| 1507 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(self)._get_raw_citation_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(gramps_id)) |
| 1508 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#) |
| 1509 | |
| 1510 | def get_source_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(gramps_id): SourceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/SourceGrampsID.) -> Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#: |
| 1511 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(self)._get_raw_source_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(gramps_id)) |
| 1512 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#) |
| 1513 | |
| 1514 | def get_event_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(gramps_id): EventGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/EventGrampsID.) -> Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#: |
| 1515 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(self)._get_raw_event_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(gramps_id)) |
| 1516 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#) |
| 1517 | |
| 1518 | def get_media_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(gramps_id): MediaGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/MediaGrampsID.) -> Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#: |
| 1519 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(self)._get_raw_media_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(gramps_id)) |
| 1520 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#) |
| 1521 | |
| 1522 | def get_place_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(gramps_id): PlaceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PlaceGrampsID.) -> Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#: |
| 1523 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(self)._get_raw_place_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(gramps_id)) |
| 1524 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#) |
| 1525 | |
| 1526 | def get_repository_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().( |
| 1527 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().(gramps_id): RepositoryGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryGrampsID. |
| 1528 | ) -> Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#: |
| 1529 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().(self)._get_raw_repository_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().(gramps_id)) |
| 1530 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#) |
| 1531 | |
| 1532 | def get_note_from_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(gramps_id): NoteGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/NoteGrampsID.) -> Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#: |
| 1533 | data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(self)._get_raw_note_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(gramps_id)) |
| 1534 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_from_gramps_id().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#) |
| 1535 | |
| 1536 | ################################################################ |
| 1537 | # |
| 1538 | # has_*_handle methods |
| 1539 | # |
| 1540 | ################################################################ |
| 1541 | |
| 1542 | def _has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(obj_key), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(handle)) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1543 | """ |
| 1544 | Return True if the handle exists in the database. |
| 1545 | """ |
| 1546 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1547 | |
| 1548 | def has_person_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle().(handle): PersonHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PersonHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1549 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_handle().(handle)) |
| 1550 | |
| 1551 | def has_family_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle().(handle): FamilyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/FamilyHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1552 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_handle().(handle)) |
| 1553 | |
| 1554 | def has_source_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle().(handle): SourceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/SourceHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1555 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_handle().(handle)) |
| 1556 | |
| 1557 | def has_citation_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle().(handle): CitationHandlescip-python python gramps 6.0.7 `gramps.gen.types`/CitationHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1558 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_handle().(handle)) |
| 1559 | |
| 1560 | def has_event_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle().(handle): EventHandlescip-python python gramps 6.0.7 `gramps.gen.types`/EventHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1561 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_handle().(handle)) |
| 1562 | |
| 1563 | def has_media_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle().(handle): MediaHandlescip-python python gramps 6.0.7 `gramps.gen.types`/MediaHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1564 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_handle().(handle)) |
| 1565 | |
| 1566 | def has_place_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle().(handle): PlaceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PlaceHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1567 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_handle().(handle)) |
| 1568 | |
| 1569 | def has_repository_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle().(handle): RepositoryHandlescip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1570 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_handle().(handle)) |
| 1571 | |
| 1572 | def has_note_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle().(handle): NoteHandlescip-python python gramps 6.0.7 `gramps.gen.types`/NoteHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1573 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_handle().(handle)) |
| 1574 | |
| 1575 | def has_tag_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle().(handle): TagHandlescip-python python gramps 6.0.7 `gramps.gen.types`/TagHandle.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1576 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle().(self)._has_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_handle().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_tag_handle().(handle)) |
| 1577 | |
| 1578 | ################################################################ |
| 1579 | # |
| 1580 | # has_*_gramps_id methods |
| 1581 | # |
| 1582 | ################################################################ |
| 1583 | |
| 1584 | def _has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(obj_key), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(gramps_id)) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1585 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1586 | |
| 1587 | def has_person_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id().(gramps_id): PersonGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PersonGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1588 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_person_gramps_id().(gramps_id)) |
| 1589 | |
| 1590 | def has_family_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id().(gramps_id): FamilyGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/FamilyGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1591 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_family_gramps_id().(gramps_id)) |
| 1592 | |
| 1593 | def has_source_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id().(gramps_id): SourceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/SourceGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1594 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_source_gramps_id().(gramps_id)) |
| 1595 | |
| 1596 | def has_citation_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id().(gramps_id): CitationGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/CitationGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1597 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_citation_gramps_id().(gramps_id)) |
| 1598 | |
| 1599 | def has_event_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id().(gramps_id): EventGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/EventGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1600 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_event_gramps_id().(gramps_id)) |
| 1601 | |
| 1602 | def has_media_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id().(gramps_id): MediaGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/MediaGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1603 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_media_gramps_id().(gramps_id)) |
| 1604 | |
| 1605 | def has_place_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id().(gramps_id): PlaceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PlaceGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1606 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_place_gramps_id().(gramps_id)) |
| 1607 | |
| 1608 | def has_repository_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id().(gramps_id): RepositoryGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1609 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_repository_gramps_id().(gramps_id)) |
| 1610 | |
| 1611 | def has_note_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id().(gramps_id): NoteGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/NoteGrampsID.) -> boolscip-python python python-stdlib 3.11 builtins/bool#: |
| 1612 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id().(self)._has_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_has_gramps_id().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#has_note_gramps_id().(gramps_id)) |
| 1613 | |
| 1614 | ################################################################ |
| 1615 | # |
| 1616 | # get_*_cursor methods |
| 1617 | # |
| 1618 | ################################################################ |
| 1619 | |
| 1620 | def get_place_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1621 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_cursor().(self)._iter_raw_place_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_data().) |
| 1622 | |
| 1623 | def get_place_tree_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_tree_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_tree_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1624 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_tree_cursor().(self)._iter_raw_place_tree_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_tree_data().) |
| 1625 | |
| 1626 | def get_person_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1627 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_cursor().(self)._iter_raw_person_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_person_data().) |
| 1628 | |
| 1629 | def get_family_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1630 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_cursor().(self)._iter_raw_family_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_family_data().) |
| 1631 | |
| 1632 | def get_event_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1633 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_cursor().(self)._iter_raw_event_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_event_data().) |
| 1634 | |
| 1635 | def get_note_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1636 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_cursor().(self)._iter_raw_note_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_note_data().) |
| 1637 | |
| 1638 | def get_tag_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1639 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_tag_cursor().(self)._iter_raw_tag_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_tag_data().) |
| 1640 | |
| 1641 | def get_repository_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1642 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_cursor().(self)._iter_raw_repository_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_repository_data().) |
| 1643 | |
| 1644 | def get_media_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1645 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_cursor().(self)._iter_raw_media_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_media_data().) |
| 1646 | |
| 1647 | def get_citation_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1648 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_cursor().(self)._iter_raw_citation_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_citation_data().) |
| 1649 | |
| 1650 | def get_source_cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_cursor().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_cursor().(self)) -> Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#: |
| 1651 | return Cursorscip-python python gramps 6.0.7 `gramps.gen.db.generic`/Cursor#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_cursor().(self)._iter_raw_source_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_source_data().) |
| 1652 | |
| 1653 | ################################################################ |
| 1654 | # |
| 1655 | # iter_*_handles methods |
| 1656 | # |
| 1657 | ################################################################ |
| 1658 | |
| 1659 | def _iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(obj_key)): |
| 1660 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1661 | |
| 1662 | def iter_person_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_person_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_person_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[PersonHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PersonHandle.]: |
| 1663 | """ |
| 1664 | Return an iterator over handles for Persons in the database |
| 1665 | """ |
| 1666 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_person_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY.) |
| 1667 | |
| 1668 | def iter_family_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_family_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_family_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[FamilyHandlescip-python python gramps 6.0.7 `gramps.gen.types`/FamilyHandle.]: |
| 1669 | """ |
| 1670 | Return an iterator over handles for Families in the database |
| 1671 | """ |
| 1672 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_family_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY.) |
| 1673 | |
| 1674 | def iter_citation_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citation_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citation_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[CitationHandlescip-python python gramps 6.0.7 `gramps.gen.types`/CitationHandle.]: |
| 1675 | """ |
| 1676 | Return an iterator over database handles, one handle for each Citation |
| 1677 | in the database. |
| 1678 | """ |
| 1679 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citation_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY.) |
| 1680 | |
| 1681 | def iter_event_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_event_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_event_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[EventHandlescip-python python gramps 6.0.7 `gramps.gen.types`/EventHandle.]: |
| 1682 | """ |
| 1683 | Return an iterator over handles for Events in the database |
| 1684 | """ |
| 1685 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_event_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY.) |
| 1686 | |
| 1687 | def iter_media_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[MediaHandlescip-python python gramps 6.0.7 `gramps.gen.types`/MediaHandle.]: |
| 1688 | """ |
| 1689 | Return an iterator over handles for Media in the database |
| 1690 | """ |
| 1691 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY.) |
| 1692 | |
| 1693 | def iter_note_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_note_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_note_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[NoteHandlescip-python python gramps 6.0.7 `gramps.gen.types`/NoteHandle.]: |
| 1694 | """ |
| 1695 | Return an iterator over handles for Notes in the database |
| 1696 | """ |
| 1697 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_note_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY.) |
| 1698 | |
| 1699 | def iter_place_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_place_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_place_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[PlaceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/PlaceHandle.]: |
| 1700 | """ |
| 1701 | Return an iterator over handles for Places in the database |
| 1702 | """ |
| 1703 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_place_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY.) |
| 1704 | |
| 1705 | def iter_repository_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repository_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repository_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[RepositoryHandlescip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryHandle.]: |
| 1706 | """ |
| 1707 | Return an iterator over handles for Repositories in the database |
| 1708 | """ |
| 1709 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repository_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY.) |
| 1710 | |
| 1711 | def iter_source_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_source_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_source_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[SourceHandlescip-python python gramps 6.0.7 `gramps.gen.types`/SourceHandle.]: |
| 1712 | """ |
| 1713 | Return an iterator over handles for Sources in the database |
| 1714 | """ |
| 1715 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_source_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY.) |
| 1716 | |
| 1717 | def iter_tag_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tag_handles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tag_handles().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[TagHandlescip-python python gramps 6.0.7 `gramps.gen.types`/TagHandle.]: |
| 1718 | """ |
| 1719 | Return an iterator over handles for Tags in the database |
| 1720 | """ |
| 1721 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tag_handles().(self)._iter_handlesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_handles().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY.) |
| 1722 | |
| 1723 | ################################################################ |
| 1724 | # |
| 1725 | # iter_* methods |
| 1726 | # |
| 1727 | ################################################################ |
| 1728 | |
| 1729 | def _iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(self), class_scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(class_)): |
| 1730 | """ |
| 1731 | Iterate over items in a class. |
| 1732 | """ |
| 1733 | cursor = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(self)._get_table_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_table_func().(class_scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(class_).__name__, "cursor_func") |
| 1734 | for handle, data in cursor(): |
| 1735 | yield selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(data, class_scip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(class_)) |
| 1736 | |
| 1737 | def iter_peoplescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_people().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_people().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#]: |
| 1738 | """Iterate over Person objects.""" |
| 1739 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_people().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#) |
| 1740 | |
| 1741 | def iter_familiesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_families().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_families().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#]: |
| 1742 | """Iterate over Family objects.""" |
| 1743 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_families().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#) |
| 1744 | |
| 1745 | def iter_citationsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citations().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citations().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#]: |
| 1746 | """Iterate over Citation objects.""" |
| 1747 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_citations().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#) |
| 1748 | |
| 1749 | def iter_eventsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_events().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_events().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#]: |
| 1750 | """Iterate over Event objects.""" |
| 1751 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_events().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#) |
| 1752 | |
| 1753 | def iter_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#]: |
| 1754 | """Iterate over Media objects.""" |
| 1755 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_media().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#) |
| 1756 | |
| 1757 | def iter_notesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_notes().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_notes().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#]: |
| 1758 | """Iterate over Note objects.""" |
| 1759 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_notes().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#) |
| 1760 | |
| 1761 | def iter_placesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_places().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_places().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#]: |
| 1762 | """Iterate over Place objects.""" |
| 1763 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_places().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#) |
| 1764 | |
| 1765 | def iter_repositoriesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repositories().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repositories().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#]: |
| 1766 | """Iterate over Repository objects.""" |
| 1767 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_repositories().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#) |
| 1768 | |
| 1769 | def iter_sourcesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_sources().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_sources().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#]: |
| 1770 | """Iterate over Source objects.""" |
| 1771 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_sources().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#) |
| 1772 | |
| 1773 | def iter_tagsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tags().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tags().(self)) -> Generatorscip-python python python-stdlib 3.11 typing/Generator#[Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#]: |
| 1774 | """Iterate over Tag objects.""" |
| 1775 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#iter_tags().(self)._iter_objectsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_objects().(Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#) |
| 1776 | |
| 1777 | ################################################################ |
| 1778 | # |
| 1779 | # _iter_raw_*_data methods |
| 1780 | # |
| 1781 | ################################################################ |
| 1782 | |
| 1783 | def _iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(obj_key)): |
| 1784 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1785 | |
| 1786 | def _iter_raw_person_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_person_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_person_data().(self)): |
| 1787 | """ |
| 1788 | Return an iterator over raw Person data. |
| 1789 | """ |
| 1790 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_person_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY.) |
| 1791 | |
| 1792 | def _iter_raw_family_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_family_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_family_data().(self)): |
| 1793 | """ |
| 1794 | Return an iterator over raw Family data. |
| 1795 | """ |
| 1796 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_family_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY.) |
| 1797 | |
| 1798 | def _iter_raw_event_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_event_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_event_data().(self)): |
| 1799 | """ |
| 1800 | Return an iterator over raw Event data. |
| 1801 | """ |
| 1802 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_event_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY.) |
| 1803 | |
| 1804 | def _iter_raw_place_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_data().(self)): |
| 1805 | """ |
| 1806 | Return an iterator over raw Place data. |
| 1807 | """ |
| 1808 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY.) |
| 1809 | |
| 1810 | def _iter_raw_repository_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_repository_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_repository_data().(self)): |
| 1811 | """ |
| 1812 | Return an iterator over raw Repository data. |
| 1813 | """ |
| 1814 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_repository_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY.) |
| 1815 | |
| 1816 | def _iter_raw_source_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_source_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_source_data().(self)): |
| 1817 | """ |
| 1818 | Return an iterator over raw Source data. |
| 1819 | """ |
| 1820 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_source_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY.) |
| 1821 | |
| 1822 | def _iter_raw_citation_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_citation_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_citation_data().(self)): |
| 1823 | """ |
| 1824 | Return an iterator over raw Citation data. |
| 1825 | """ |
| 1826 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_citation_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY.) |
| 1827 | |
| 1828 | def _iter_raw_media_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_media_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_media_data().(self)): |
| 1829 | """ |
| 1830 | Return an iterator over raw Media data. |
| 1831 | """ |
| 1832 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_media_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY.) |
| 1833 | |
| 1834 | def _iter_raw_note_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_note_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_note_data().(self)): |
| 1835 | """ |
| 1836 | Return an iterator over raw Note data. |
| 1837 | """ |
| 1838 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_note_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY.) |
| 1839 | |
| 1840 | def _iter_raw_tag_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_tag_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_tag_data().(self)): |
| 1841 | """ |
| 1842 | Return an iterator over raw Tag data. |
| 1843 | """ |
| 1844 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_tag_data().(self)._iter_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_data().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY.) |
| 1845 | |
| 1846 | def _iter_raw_place_tree_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_tree_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_iter_raw_place_tree_data().(self)): |
| 1847 | """ |
| 1848 | Return an iterator over raw data in the place hierarchy. |
| 1849 | """ |
| 1850 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1851 | |
| 1852 | ################################################################ |
| 1853 | # |
| 1854 | # get_raw_*_data methods |
| 1855 | # |
| 1856 | ################################################################ |
| 1857 | |
| 1858 | def _get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(obj_key), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(handle)): |
| 1859 | """ |
| 1860 | Return raw (serialized) object from handle. |
| 1861 | """ |
| 1862 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1863 | |
| 1864 | def get_raw_person_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data().(handle)): |
| 1865 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_person_data().(handle)) |
| 1866 | |
| 1867 | def get_raw_family_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data().(handle)): |
| 1868 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_family_data().(handle)) |
| 1869 | |
| 1870 | def get_raw_source_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data().(handle)): |
| 1871 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_source_data().(handle)) |
| 1872 | |
| 1873 | def get_raw_citation_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data().(handle)): |
| 1874 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_citation_data().(handle)) |
| 1875 | |
| 1876 | def get_raw_event_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data().(handle)): |
| 1877 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_event_data().(handle)) |
| 1878 | |
| 1879 | def get_raw_media_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data().(handle)): |
| 1880 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_media_data().(handle)) |
| 1881 | |
| 1882 | def get_raw_place_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data().(handle)): |
| 1883 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_place_data().(handle)) |
| 1884 | |
| 1885 | def get_raw_repository_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data().(handle)): |
| 1886 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_repository_data().(handle)) |
| 1887 | |
| 1888 | def get_raw_note_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data().(handle)): |
| 1889 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_note_data().(handle)) |
| 1890 | |
| 1891 | def get_raw_tag_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data().(handle)): |
| 1892 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data().(self)._get_raw_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_data().(TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY., handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_raw_tag_data().(handle)) |
| 1893 | |
| 1894 | ################################################################ |
| 1895 | # |
| 1896 | # get_raw_*_from_id_data methods |
| 1897 | # |
| 1898 | ################################################################ |
| 1899 | |
| 1900 | def _get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(self), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(obj_key), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(gramps_id)): |
| 1901 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 1902 | |
| 1903 | def _get_raw_person_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(gramps_id): PersonGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PersonGrampsID.): |
| 1904 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_person_from_id_data().(gramps_id)) |
| 1905 | |
| 1906 | def _get_raw_family_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(gramps_id): FamilyGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/FamilyGrampsID.): |
| 1907 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_family_from_id_data().(gramps_id)) |
| 1908 | |
| 1909 | def _get_raw_source_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(gramps_id): SourceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/SourceGrampsID.): |
| 1910 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_source_from_id_data().(gramps_id)) |
| 1911 | |
| 1912 | def _get_raw_citation_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(gramps_id): CitationGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/CitationGrampsID.): |
| 1913 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_citation_from_id_data().(gramps_id)) |
| 1914 | |
| 1915 | def _get_raw_event_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(gramps_id): EventGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/EventGrampsID.): |
| 1916 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_event_from_id_data().(gramps_id)) |
| 1917 | |
| 1918 | def _get_raw_media_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(gramps_id): MediaGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/MediaGrampsID.): |
| 1919 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_media_from_id_data().(gramps_id)) |
| 1920 | |
| 1921 | def _get_raw_place_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(gramps_id): PlaceGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/PlaceGrampsID.): |
| 1922 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_place_from_id_data().(gramps_id)) |
| 1923 | |
| 1924 | def _get_raw_repository_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(gramps_id): RepositoryGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/RepositoryGrampsID.): |
| 1925 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_repository_from_id_data().(gramps_id)) |
| 1926 | |
| 1927 | def _get_raw_note_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(self), gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(gramps_id): NoteGrampsIDscip-python python gramps 6.0.7 `gramps.gen.types`/NoteGrampsID.): |
| 1928 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(self)._get_raw_from_id_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_from_id_data().(NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_raw_note_from_id_data().(gramps_id)) |
| 1929 | |
| 1930 | ################################################################ |
| 1931 | # |
| 1932 | # add_* methods |
| 1933 | # |
| 1934 | ################################################################ |
| 1935 | |
| 1936 | def _add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(self), objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj), transscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(trans), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(set_gid): boolscip-python python python-stdlib 3.11 builtins/bool#, find_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(find_func), commit_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(commit_func)): |
| 1937 | if not objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).handle: |
| 1938 | objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).handle = create_idscip-python python gramps 6.0.7 `gramps.gen.utils.id`/create_id().() |
| 1939 | if (not objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).gramps_id) and set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(set_gid): |
| 1940 | objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).gramps_id = find_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(find_func)() |
| 1941 | if not objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).gramps_id: |
| 1942 | # give it a random value for the moment: |
| 1943 | objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).gramps_id = strscip-python python python-stdlib 3.11 builtins/str#(randomscip-python python python-stdlib 3.11 random/__init__:.randomscip-python python python-stdlib 3.11 random/random.()) |
| 1944 | commit_funcscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(commit_func)(objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj), transscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(trans)) |
| 1945 | return objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().(obj).handle |
| 1946 | |
| 1947 | def add_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(person): Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(set_gid)=True): |
| 1948 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1949 | personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(person), |
| 1950 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(transaction), |
| 1951 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(set_gid), |
| 1952 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(self).find_next_person_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_person_gramps_id()., |
| 1953 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_person().(self).commit_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person()., |
| 1954 | ) |
| 1955 | |
| 1956 | def add_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(self), familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(family): Familyscip-python python gramps 6.0.7 `gramps.gen.lib.family`/Family#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(set_gid)=True): |
| 1957 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1958 | familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(family), |
| 1959 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(transaction), |
| 1960 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(set_gid), |
| 1961 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(self).find_next_family_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_family_gramps_id()., |
| 1962 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_family().(self).commit_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family()., |
| 1963 | ) |
| 1964 | |
| 1965 | def add_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(self), eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(event): Eventscip-python python gramps 6.0.7 `gramps.gen.lib.event`/Event#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(set_gid)=True): |
| 1966 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1967 | eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(event), |
| 1968 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(transaction), |
| 1969 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(set_gid), |
| 1970 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(self).find_next_event_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_event_gramps_id()., |
| 1971 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_event().(self).commit_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event()., |
| 1972 | ) |
| 1973 | |
| 1974 | def add_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(self), placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(place): Placescip-python python gramps 6.0.7 `gramps.gen.lib.place`/Place#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(set_gid)=True): |
| 1975 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1976 | placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(place), |
| 1977 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(transaction), |
| 1978 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(set_gid), |
| 1979 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(self).find_next_place_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_place_gramps_id()., |
| 1980 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_place().(self).commit_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place()., |
| 1981 | ) |
| 1982 | |
| 1983 | def add_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(self), repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(repository): Repositoryscip-python python gramps 6.0.7 `gramps.gen.lib.repo`/Repository#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(set_gid)=True): |
| 1984 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1985 | repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(repository), |
| 1986 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(transaction), |
| 1987 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(set_gid), |
| 1988 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(self).find_next_repository_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_repository_gramps_id()., |
| 1989 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_repository().(self).commit_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository()., |
| 1990 | ) |
| 1991 | |
| 1992 | def add_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(self), sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(source): Sourcescip-python python gramps 6.0.7 `gramps.gen.lib.src`/Source#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(set_gid)=True): |
| 1993 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 1994 | sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(source), |
| 1995 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(transaction), |
| 1996 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(set_gid), |
| 1997 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(self).find_next_source_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_source_gramps_id()., |
| 1998 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_source().(self).commit_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source()., |
| 1999 | ) |
| 2000 | |
| 2001 | def add_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(self), citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(citation): Citationscip-python python gramps 6.0.7 `gramps.gen.lib.citation`/Citation#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(set_gid)=True): |
| 2002 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 2003 | citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(citation), |
| 2004 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(transaction), |
| 2005 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(set_gid), |
| 2006 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(self).find_next_citation_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_citation_gramps_id()., |
| 2007 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_citation().(self).commit_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation()., |
| 2008 | ) |
| 2009 | |
| 2010 | def add_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(self), mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(media): Mediascip-python python gramps 6.0.7 `gramps.gen.lib.media`/Media#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(set_gid)=True): |
| 2011 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 2012 | mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(media), |
| 2013 | transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(transaction), |
| 2014 | set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(set_gid), |
| 2015 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(self).find_next_media_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_media_gramps_id()., |
| 2016 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_media().(self).commit_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media()., |
| 2017 | ) |
| 2018 | |
| 2019 | def add_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(self), notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(note): Notescip-python python gramps 6.0.7 `gramps.gen.lib.note`/Note#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(set_gid)=True): |
| 2020 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(self)._add_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_add_base().( |
| 2021 | notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(note), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(transaction), set_gidscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(set_gid), selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(self).find_next_note_gramps_idscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#find_next_note_gramps_id()., selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_note().(self).commit_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note(). |
| 2022 | ) |
| 2023 | |
| 2024 | def add_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(self), tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(tag): Tagscip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#, transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(transaction)): |
| 2025 | if not tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(tag).handlescip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#handle.: |
| 2026 | tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(tag).handlescip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#handle. = create_idscip-python python gramps 6.0.7 `gramps.gen.utils.id`/create_id().() |
| 2027 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(self).commit_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(tag), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(transaction)) |
| 2028 | return tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_tag().(tag).handlescip-python python gramps 6.0.7 `gramps.gen.lib.tag`/Tag#handle. |
| 2029 | |
| 2030 | ################################################################ |
| 2031 | # |
| 2032 | # commit_* methods |
| 2033 | # |
| 2034 | ################################################################ |
| 2035 | |
| 2036 | def _commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(self), objscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(obj), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(obj_key), transscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(trans), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(change_time)): |
| 2037 | """ |
| 2038 | Commit the specified object to the database, storing the changes as |
| 2039 | part of the transaction. |
| 2040 | """ |
| 2041 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 2042 | |
| 2043 | def commit_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(change_time)=None): |
| 2044 | """ |
| 2045 | Commit the specified Person to the database, storing the changes as |
| 2046 | part of the transaction. |
| 2047 | """ |
| 2048 | old_data = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person), PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(change_time)) |
| 2049 | |
| 2050 | if old_data: |
| 2051 | old_person = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer..data_to_objectscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer#data_to_object().(old_data, Personscip-python python gramps 6.0.7 `gramps.gen.lib.person`/Person#) |
| 2052 | # Update gender statistics if necessary |
| 2053 | if old_person.gender != personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).gender or ( |
| 2054 | old_person.primary_name.first_name != personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).primary_name.first_name |
| 2055 | ): |
| 2056 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats..uncount_personscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats#uncount_person().(old_person) |
| 2057 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats..count_personscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats#count_person().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person)) |
| 2058 | # Update surname list if necessary |
| 2059 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self)._order_by_person_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person)) != selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self)._order_by_person_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().( |
| 2060 | old_person |
| 2061 | ): |
| 2062 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).remove_from_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(old_person) |
| 2063 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).add_to_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(transaction).batch) |
| 2064 | else: |
| 2065 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).genderStatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#genderStats..count_personscip-python python gramps 6.0.7 `gramps.gen.lib.genderstats`/GenderStats#count_person().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person)) |
| 2066 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).add_to_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(transaction).batch) |
| 2067 | |
| 2068 | # Other misc update tasks: |
| 2069 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).individual_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#individual_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2070 | [ |
| 2071 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2072 | for attr in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).attribute_list |
| 2073 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2074 | ] |
| 2075 | ) |
| 2076 | |
| 2077 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2078 | [strscip-python python python-stdlib 3.11 builtins/str#(eref.role) for eref in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).event_ref_list if eref.role.is_custom()] |
| 2079 | ) |
| 2080 | |
| 2081 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2082 | [ |
| 2083 | strscip-python python python-stdlib 3.11 builtins/str#(name.type) |
| 2084 | for name in ([personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).primary_name] + personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).alternate_names) |
| 2085 | if name.type.is_custom() |
| 2086 | ] |
| 2087 | ) |
| 2088 | all_surn = [] # new list we will use for storage |
| 2089 | all_surn += personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).primary_name.get_surname_list() |
| 2090 | for asurname in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).alternate_names: |
| 2091 | all_surn += asurname.get_surname_list() |
| 2092 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#origin_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2093 | [strscip-python python python-stdlib 3.11 builtins/str#(surn.origintype) for surn in all_surn if surn.origintype.is_custom()] |
| 2094 | ) |
| 2095 | all_surn = None |
| 2096 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2097 | [strscip-python python python-stdlib 3.11 builtins/str#(url.type) for url in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).urls if url.type.is_custom()] |
| 2098 | ) |
| 2099 | attr_list = [] |
| 2100 | for mref in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(person).media_list: |
| 2101 | attr_list += [ |
| 2102 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2103 | for attr in mref.attribute_list |
| 2104 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2105 | ] |
| 2106 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_person().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2107 | |
| 2108 | def commit_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self), familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(change_time)=None): |
| 2109 | """ |
| 2110 | Commit the specified Family to the database, storing the changes as |
| 2111 | part of the transaction. |
| 2112 | """ |
| 2113 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family), FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(change_time)) |
| 2114 | |
| 2115 | # Misc updates: |
| 2116 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self).family_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2117 | [ |
| 2118 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2119 | for attr in familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).attribute_list |
| 2120 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2121 | ] |
| 2122 | ) |
| 2123 | |
| 2124 | rel_list = [] |
| 2125 | for ref in familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).child_ref_list: |
| 2126 | if ref.frel.is_custom(): |
| 2127 | rel_list.appendscip-python python python-stdlib 3.11 builtins/list#append().(strscip-python python python-stdlib 3.11 builtins/str#(ref.frel)) |
| 2128 | if ref.mrel.is_custom(): |
| 2129 | rel_list.appendscip-python python python-stdlib 3.11 builtins/list#append().(strscip-python python python-stdlib 3.11 builtins/str#(ref.mrel)) |
| 2130 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self).child_ref_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#child_ref_types..updatescip-python python python-stdlib 3.11 builtins/set#update().(rel_list) |
| 2131 | |
| 2132 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2133 | [strscip-python python python-stdlib 3.11 builtins/str#(eref.role) for eref in familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).event_ref_list if eref.role.is_custom()] |
| 2134 | ) |
| 2135 | |
| 2136 | if familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).type.is_custom(): |
| 2137 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self).family_rel_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_rel_types..addscip-python python python-stdlib 3.11 builtins/set#add().(strscip-python python python-stdlib 3.11 builtins/str#(familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).type)) |
| 2138 | |
| 2139 | attr_list = [] |
| 2140 | for mref in familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(family).media_list: |
| 2141 | attr_list += [ |
| 2142 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2143 | for attr in mref.attribute_list |
| 2144 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2145 | ] |
| 2146 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_family().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2147 | |
| 2148 | def commit_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(self), citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(citation), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(change_time)=None): |
| 2149 | """ |
| 2150 | Commit the specified Citation to the database, storing the changes as |
| 2151 | part of the transaction. |
| 2152 | """ |
| 2153 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(citation), CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(change_time)) |
| 2154 | |
| 2155 | # Misc updates: |
| 2156 | attr_list = [] |
| 2157 | for mref in citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(citation).media_list: |
| 2158 | attr_list += [ |
| 2159 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2160 | for attr in mref.attribute_list |
| 2161 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2162 | ] |
| 2163 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2164 | |
| 2165 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2166 | [ |
| 2167 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2168 | for attr in citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_citation().(citation).attribute_list |
| 2169 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2170 | ] |
| 2171 | ) |
| 2172 | |
| 2173 | def commit_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(self), sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(source), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(change_time)=None): |
| 2174 | """ |
| 2175 | Commit the specified Source to the database, storing the changes as |
| 2176 | part of the transaction. |
| 2177 | """ |
| 2178 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(source), SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(change_time)) |
| 2179 | |
| 2180 | # Misc updates: |
| 2181 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(self).source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_media_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2182 | [ |
| 2183 | strscip-python python python-stdlib 3.11 builtins/str#(ref.media_type) |
| 2184 | for ref in sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(source).reporef_list |
| 2185 | if ref.media_type.is_custom() |
| 2186 | ] |
| 2187 | ) |
| 2188 | |
| 2189 | attr_list = [] |
| 2190 | for mref in sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(source).media_list: |
| 2191 | attr_list += [ |
| 2192 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2193 | for attr in mref.attribute_list |
| 2194 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2195 | ] |
| 2196 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2197 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2198 | [ |
| 2199 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2200 | for attr in sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_source().(source).attribute_list |
| 2201 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2202 | ] |
| 2203 | ) |
| 2204 | |
| 2205 | def commit_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(self), repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(repository), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(change_time)=None): |
| 2206 | """ |
| 2207 | Commit the specified Repository to the database, storing the changes |
| 2208 | as part of the transaction. |
| 2209 | """ |
| 2210 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(repository), REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(change_time)) |
| 2211 | |
| 2212 | # Misc updates: |
| 2213 | if repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(repository).type.is_custom(): |
| 2214 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(self).repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_types..addscip-python python python-stdlib 3.11 builtins/set#add().(strscip-python python python-stdlib 3.11 builtins/str#(repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(repository).type)) |
| 2215 | |
| 2216 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2217 | [strscip-python python python-stdlib 3.11 builtins/str#(url.type) for url in repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_repository().(repository).urls if url.type.is_custom()] |
| 2218 | ) |
| 2219 | |
| 2220 | def commit_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(self), notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(note), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(change_time)=None): |
| 2221 | """ |
| 2222 | Commit the specified Note to the database, storing the changes as part |
| 2223 | of the transaction. |
| 2224 | """ |
| 2225 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(note), NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(change_time)) |
| 2226 | |
| 2227 | # Misc updates: |
| 2228 | if notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(note).type.is_custom(): |
| 2229 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(self).note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_types..addscip-python python python-stdlib 3.11 builtins/set#add().(strscip-python python python-stdlib 3.11 builtins/str#(notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_note().(note).type)) |
| 2230 | |
| 2231 | def commit_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(self), placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(change_time)=None): |
| 2232 | """ |
| 2233 | Commit the specified Place to the database, storing the changes as |
| 2234 | part of the transaction. |
| 2235 | """ |
| 2236 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place), PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(change_time)) |
| 2237 | |
| 2238 | # Misc updates: |
| 2239 | if placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place).get_type().is_custom(): |
| 2240 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(self).place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_types..addscip-python python python-stdlib 3.11 builtins/set#add().(strscip-python python python-stdlib 3.11 builtins/str#(placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place).get_type())) |
| 2241 | |
| 2242 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2243 | [strscip-python python python-stdlib 3.11 builtins/str#(url.type) for url in placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place).urls if url.type.is_custom()] |
| 2244 | ) |
| 2245 | |
| 2246 | attr_list = [] |
| 2247 | for mref in placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(place).media_list: |
| 2248 | attr_list += [ |
| 2249 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2250 | for attr in mref.attribute_list |
| 2251 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2252 | ] |
| 2253 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_place().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2254 | |
| 2255 | def commit_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(self), eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(change_time)=None): |
| 2256 | """ |
| 2257 | Commit the specified Event to the database, storing the changes as |
| 2258 | part of the transaction. |
| 2259 | """ |
| 2260 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event), EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(change_time)) |
| 2261 | |
| 2262 | # Misc updates: |
| 2263 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(self).event_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2264 | [ |
| 2265 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2266 | for attr in eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event).attribute_list |
| 2267 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2268 | ] |
| 2269 | ) |
| 2270 | if eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event).type.is_custom(): |
| 2271 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names..addscip-python python python-stdlib 3.11 builtins/set#add().(strscip-python python python-stdlib 3.11 builtins/str#(eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event).type)) |
| 2272 | attr_list = [] |
| 2273 | for mref in eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(event).media_list: |
| 2274 | attr_list += [ |
| 2275 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2276 | for attr in mref.attribute_list |
| 2277 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2278 | ] |
| 2279 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_event().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().(attr_list) |
| 2280 | |
| 2281 | def commit_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(self), tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(tag), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(change_time)=None): |
| 2282 | """ |
| 2283 | Commit the specified Tag to the database, storing the changes as |
| 2284 | part of the transaction. |
| 2285 | """ |
| 2286 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(tag), TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_tag().(change_time)) |
| 2287 | |
| 2288 | def commit_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(self), mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(media), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(change_time)=None): |
| 2289 | """ |
| 2290 | Commit the specified Media to the database, storing the changes |
| 2291 | as part of the transaction. |
| 2292 | """ |
| 2293 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(self)._commit_basescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_commit_base().(mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(media), MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY., transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(transaction), change_timescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(change_time)) |
| 2294 | |
| 2295 | # Misc updates: |
| 2296 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes..updatescip-python python python-stdlib 3.11 builtins/set#update().( |
| 2297 | [ |
| 2298 | strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2299 | for attr in mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#commit_media().(media).attribute_list |
| 2300 | if attr.type.is_custom() and strscip-python python python-stdlib 3.11 builtins/str#(attr.type) |
| 2301 | ] |
| 2302 | ) |
| 2303 | |
| 2304 | def _after_commitscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(transaction)): |
| 2305 | """ |
| 2306 | Post-transaction commit processing |
| 2307 | """ |
| 2308 | # Reset callbacks if necessary |
| 2309 | if transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(transaction).batch or not len(transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(transaction)): |
| 2310 | return |
| 2311 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).undo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_callback.: |
| 2312 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).undo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_callback.(_("_Undo %s") % transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(transaction).get_description()) |
| 2313 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).redo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo_callback.: |
| 2314 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).redo_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo_callback.(None) |
| 2315 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).undo_history_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_history_callback.: |
| 2316 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_after_commit().(self).undo_history_callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo_history_callback.() |
| 2317 | |
| 2318 | ################################################################ |
| 2319 | # |
| 2320 | # remove_* methods |
| 2321 | # |
| 2322 | ################################################################ |
| 2323 | |
| 2324 | def _do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(transaction), obj_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(obj_key)): |
| 2325 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 2326 | |
| 2327 | def remove_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(transaction)): |
| 2328 | """ |
| 2329 | Remove the Person specified by the database handle from the |
| 2330 | database, preserving the change in the passed transaction. |
| 2331 | """ |
| 2332 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_person().(transaction), PERSON_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PERSON_KEY.) |
| 2333 | |
| 2334 | def remove_sourcescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(transaction)): |
| 2335 | """ |
| 2336 | Remove the Source specified by the database handle from the |
| 2337 | database, preserving the change in the passed transaction. |
| 2338 | """ |
| 2339 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_source().(transaction), SOURCE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/SOURCE_KEY.) |
| 2340 | |
| 2341 | def remove_citationscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(transaction)): |
| 2342 | """ |
| 2343 | Remove the Citation specified by the database handle from the |
| 2344 | database, preserving the change in the passed transaction. |
| 2345 | """ |
| 2346 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_citation().(transaction), CITATION_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/CITATION_KEY.) |
| 2347 | |
| 2348 | def remove_eventscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(transaction)): |
| 2349 | """ |
| 2350 | Remove the Event specified by the database handle from the |
| 2351 | database, preserving the change in the passed transaction. |
| 2352 | """ |
| 2353 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_event().(transaction), EVENT_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/EVENT_KEY.) |
| 2354 | |
| 2355 | def remove_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(transaction)): |
| 2356 | """ |
| 2357 | Remove the MediaPerson specified by the database handle from the |
| 2358 | database, preserving the change in the passed transaction. |
| 2359 | """ |
| 2360 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_media().(transaction), MEDIA_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/MEDIA_KEY.) |
| 2361 | |
| 2362 | def remove_placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(transaction)): |
| 2363 | """ |
| 2364 | Remove the Place specified by the database handle from the |
| 2365 | database, preserving the change in the passed transaction. |
| 2366 | """ |
| 2367 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_place().(transaction), PLACE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/PLACE_KEY.) |
| 2368 | |
| 2369 | def remove_familyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(transaction)): |
| 2370 | """ |
| 2371 | Remove the Family specified by the database handle from the |
| 2372 | database, preserving the change in the passed transaction. |
| 2373 | """ |
| 2374 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_family().(transaction), FAMILY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/FAMILY_KEY.) |
| 2375 | |
| 2376 | def remove_repositoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(transaction)): |
| 2377 | """ |
| 2378 | Remove the Repository specified by the database handle from the |
| 2379 | database, preserving the change in the passed transaction. |
| 2380 | """ |
| 2381 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_repository().(transaction), REPOSITORY_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/REPOSITORY_KEY.) |
| 2382 | |
| 2383 | def remove_notescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(transaction)): |
| 2384 | """ |
| 2385 | Remove the Note specified by the database handle from the |
| 2386 | database, preserving the change in the passed transaction. |
| 2387 | """ |
| 2388 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_note().(transaction), NOTE_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/NOTE_KEY.) |
| 2389 | |
| 2390 | def remove_tagscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(transaction)): |
| 2391 | """ |
| 2392 | Remove the Tag specified by the database handle from the |
| 2393 | database, preserving the change in the passed transaction. |
| 2394 | """ |
| 2395 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(self)._do_removescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_do_remove().(handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(handle), transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_tag().(transaction), TAG_KEYscip-python python gramps 6.0.7 `gramps.gen.db.dbconst`/TAG_KEY.) |
| 2396 | |
| 2397 | ################################################################ |
| 2398 | # |
| 2399 | # get_*_types methods |
| 2400 | # |
| 2401 | ################################################################ |
| 2402 | |
| 2403 | def get_event_attribute_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_attribute_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_attribute_types().(self)): |
| 2404 | """ |
| 2405 | Return a list of all Attribute types assocated with Event instances |
| 2406 | in the database. |
| 2407 | """ |
| 2408 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_attribute_types().(self).event_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_attributes.) |
| 2409 | |
| 2410 | def get_event_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_types().(self)): |
| 2411 | """ |
| 2412 | Return a list of all event types in the database. |
| 2413 | """ |
| 2414 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_types().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names.) |
| 2415 | |
| 2416 | def get_person_event_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_event_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_event_types().(self)): |
| 2417 | """ |
| 2418 | Deprecated: Use get_event_types |
| 2419 | """ |
| 2420 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_event_types().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names.) |
| 2421 | |
| 2422 | def get_person_attribute_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_attribute_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_attribute_types().(self)): |
| 2423 | """ |
| 2424 | Return a list of all Attribute types assocated with Person instances |
| 2425 | in the database. |
| 2426 | """ |
| 2427 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_attribute_types().(self).individual_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#individual_attributes.) |
| 2428 | |
| 2429 | def get_family_attribute_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_attribute_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_attribute_types().(self)): |
| 2430 | """ |
| 2431 | Return a list of all Attribute types assocated with Family instances |
| 2432 | in the database. |
| 2433 | """ |
| 2434 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_attribute_types().(self).family_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_attributes.) |
| 2435 | |
| 2436 | def get_family_event_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_event_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_event_types().(self)): |
| 2437 | """ |
| 2438 | Deprecated: Use get_event_types |
| 2439 | """ |
| 2440 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_event_types().(self).event_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_names.) |
| 2441 | |
| 2442 | def get_media_attribute_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_attribute_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_attribute_types().(self)): |
| 2443 | """ |
| 2444 | Return a list of all Attribute types assocated with Media and MediaRef |
| 2445 | instances in the database. |
| 2446 | """ |
| 2447 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_attribute_types().(self).media_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_attributes.) |
| 2448 | |
| 2449 | def get_family_relation_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_relation_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_relation_types().(self)): |
| 2450 | """ |
| 2451 | Return a list of all relationship types assocated with Family |
| 2452 | instances in the database. |
| 2453 | """ |
| 2454 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_relation_types().(self).family_rel_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_rel_types.) |
| 2455 | |
| 2456 | def get_child_reference_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_child_reference_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_child_reference_types().(self)): |
| 2457 | """ |
| 2458 | Return a list of all child reference types assocated with Family |
| 2459 | instances in the database. |
| 2460 | """ |
| 2461 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_child_reference_types().(self).child_ref_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#child_ref_types.) |
| 2462 | |
| 2463 | def get_event_rolesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_roles().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_roles().(self)): |
| 2464 | """ |
| 2465 | Return a list of all custom event role names assocated with Event |
| 2466 | instances in the database. |
| 2467 | """ |
| 2468 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_roles().(self).event_role_namesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_role_names.) |
| 2469 | |
| 2470 | def get_name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_name_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_name_types().(self)): |
| 2471 | """ |
| 2472 | Return a list of all custom names types assocated with Person |
| 2473 | instances in the database. |
| 2474 | """ |
| 2475 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_name_types().(self).name_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#name_types.) |
| 2476 | |
| 2477 | def get_origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_origin_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_origin_types().(self)): |
| 2478 | """ |
| 2479 | Return a list of all custom origin types assocated with Person/Surname |
| 2480 | instances in the database. |
| 2481 | """ |
| 2482 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_origin_types().(self).origin_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#origin_types.) |
| 2483 | |
| 2484 | def get_repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_types().(self)): |
| 2485 | """ |
| 2486 | Return a list of all custom repository types assocated with Repository |
| 2487 | instances in the database. |
| 2488 | """ |
| 2489 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repository_types().(self).repository_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repository_types.) |
| 2490 | |
| 2491 | def get_note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_types().(self)): |
| 2492 | """ |
| 2493 | Return a list of all custom note types assocated with Note instances |
| 2494 | in the database. |
| 2495 | """ |
| 2496 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_types().(self).note_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_types.) |
| 2497 | |
| 2498 | def get_source_attribute_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_attribute_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_attribute_types().(self)): |
| 2499 | """ |
| 2500 | Return a list of all Attribute types assocated with Source/Citation |
| 2501 | instances in the database. |
| 2502 | """ |
| 2503 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_attribute_types().(self).source_attributesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_attributes.) |
| 2504 | |
| 2505 | def get_source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_media_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_media_types().(self)): |
| 2506 | """ |
| 2507 | Return a list of all custom source media types assocated with Source |
| 2508 | instances in the database. |
| 2509 | """ |
| 2510 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_media_types().(self).source_media_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_media_types.) |
| 2511 | |
| 2512 | def get_url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_url_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_url_types().(self)): |
| 2513 | """ |
| 2514 | Return a list of all custom names types assocated with Url instances |
| 2515 | in the database. |
| 2516 | """ |
| 2517 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_url_types().(self).url_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#url_types.) |
| 2518 | |
| 2519 | def get_place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_types().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_types().(self)): |
| 2520 | """ |
| 2521 | Return a list of all custom place types assocated with Place instances |
| 2522 | in the database. |
| 2523 | """ |
| 2524 | return listscip-python python python-stdlib 3.11 builtins/list#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_types().(self).place_typesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_types.) |
| 2525 | |
| 2526 | ################################################################ |
| 2527 | # |
| 2528 | # get_*_bookmarks methods |
| 2529 | # |
| 2530 | ################################################################ |
| 2531 | |
| 2532 | def get_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_bookmarks().(self)): |
| 2533 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_bookmarks().(self).bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#bookmarks. |
| 2534 | |
| 2535 | def get_citation_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_bookmarks().(self)): |
| 2536 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_citation_bookmarks().(self).citation_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#citation_bookmarks. |
| 2537 | |
| 2538 | def get_event_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_bookmarks().(self)): |
| 2539 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_event_bookmarks().(self).event_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#event_bookmarks. |
| 2540 | |
| 2541 | def get_family_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_bookmarks().(self)): |
| 2542 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_family_bookmarks().(self).family_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#family_bookmarks. |
| 2543 | |
| 2544 | def get_media_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_bookmarks().(self)): |
| 2545 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_media_bookmarks().(self).media_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#media_bookmarks. |
| 2546 | |
| 2547 | def get_note_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_bookmarks().(self)): |
| 2548 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_note_bookmarks().(self).note_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#note_bookmarks. |
| 2549 | |
| 2550 | def get_place_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_bookmarks().(self)): |
| 2551 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_place_bookmarks().(self).place_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#place_bookmarks. |
| 2552 | |
| 2553 | def get_repo_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repo_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repo_bookmarks().(self)): |
| 2554 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_repo_bookmarks().(self).repo_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#repo_bookmarks. |
| 2555 | |
| 2556 | def get_source_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_bookmarks().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_bookmarks().(self)): |
| 2557 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_source_bookmarks().(self).source_bookmarksscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#source_bookmarks. |
| 2558 | |
| 2559 | ################################################################ |
| 2560 | # |
| 2561 | # Other methods |
| 2562 | # |
| 2563 | ################################################################ |
| 2564 | |
| 2565 | def get_default_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_handle().(self)): |
| 2566 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_handle().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("default-person-handle", None) |
| 2567 | |
| 2568 | def get_default_personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_person().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_person().(self)): |
| 2569 | handle = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_person().(self).get_default_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_handle().() |
| 2570 | if handle: |
| 2571 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_default_person().(self).get_person_from_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_person_from_handle().(handle) |
| 2572 | return None |
| 2573 | |
| 2574 | def set_default_person_handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(self), handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(handle)): |
| 2575 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("default-person-handle", handlescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(handle)) |
| 2576 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_default_person_handle().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("home-person-changed") |
| 2577 | |
| 2578 | def get_mediapathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_mediapath().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_mediapath().(self)): |
| 2579 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_mediapath().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("media-path", None) |
| 2580 | |
| 2581 | def set_mediapathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_mediapath().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_mediapath().(self), mediapathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_mediapath().(mediapath)): |
| 2582 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_mediapath().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("media-path", mediapathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_mediapath().(mediapath)) |
| 2583 | |
| 2584 | def get_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_surname_list().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_surname_list().(self)): |
| 2585 | """ |
| 2586 | Return the list of locale-sorted surnames contained in the database. |
| 2587 | """ |
| 2588 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list. |
| 2589 | |
| 2590 | def add_to_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(person), batch_transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(batch_transaction)): |
| 2591 | """ |
| 2592 | Add surname to surname list |
| 2593 | """ |
| 2594 | if batch_transactionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(batch_transaction): |
| 2595 | return |
| 2596 | name = None |
| 2597 | primary_name = personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(person).get_primary_name() |
| 2598 | if primary_name: |
| 2599 | surname_list = primary_name.get_surname_list() |
| 2600 | if len(surname_list) > 0: |
| 2601 | name = surname_list[0].surname |
| 2602 | if name is None: |
| 2603 | return |
| 2604 | i = bisectscip-python python python-stdlib 3.11 bisect/__init__:.bisectscip-python python python-stdlib 3.11 bisect/bisect.(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list., name) |
| 2605 | if 0 < i <= len(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list.): |
| 2606 | if selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list.[i - 1] != name: |
| 2607 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list..insertscip-python python python-stdlib 3.11 builtins/list#insert().(i, name) |
| 2608 | else: |
| 2609 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#add_to_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list..insertscip-python python python-stdlib 3.11 builtins/list#insert().(i, name) |
| 2610 | |
| 2611 | def remove_from_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(person)): |
| 2612 | """ |
| 2613 | Check whether there are persons with the same surname left in |
| 2614 | the database. |
| 2615 | |
| 2616 | If not then we need to remove the name from the list. |
| 2617 | The function must be overridden in the derived class. |
| 2618 | """ |
| 2619 | name = None |
| 2620 | primary_name = personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(person).get_primary_name() |
| 2621 | if primary_name: |
| 2622 | surname_list = primary_name.get_surname_list() |
| 2623 | if len(surname_list) > 0: |
| 2624 | name = surname_list[0].surname |
| 2625 | if name is None: |
| 2626 | return |
| 2627 | if name in selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list.: |
| 2628 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#remove_from_surname_list().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list..removescip-python python python-stdlib 3.11 builtins/list#remove().(name) |
| 2629 | |
| 2630 | def get_gender_statsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_gender_stats().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_gender_stats().(self)): |
| 2631 | """ |
| 2632 | Returns a dictionary of |
| 2633 | {given_name: (male_count, female_count, unknown_count)} |
| 2634 | """ |
| 2635 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 2636 | |
| 2637 | def save_gender_statsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#save_gender_stats().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#save_gender_stats().(self), gstatsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#save_gender_stats().(gstats)): |
| 2638 | raise NotImplementedErrorscip-python python python-stdlib 3.11 builtins/NotImplementedError# |
| 2639 | |
| 2640 | def get_researcherscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_researcher().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_researcher().(self)): |
| 2641 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_researcher().(self).ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#owner. |
| 2642 | |
| 2643 | def set_researcherscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_researcher().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_researcher().(self), ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_researcher().(owner)): |
| 2644 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_researcher().(self).ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#owner..set_fromscip-python python gramps 6.0.7 `gramps.gen.lib.researcher`/Researcher#set_from().(ownerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_researcher().(owner)) |
| 2645 | |
| 2646 | def request_rebuildscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self)): |
| 2647 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("person-rebuild") |
| 2648 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("family-rebuild") |
| 2649 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("place-rebuild") |
| 2650 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("source-rebuild") |
| 2651 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("citation-rebuild") |
| 2652 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("media-rebuild") |
| 2653 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("event-rebuild") |
| 2654 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("repository-rebuild") |
| 2655 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("note-rebuild") |
| 2656 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#request_rebuild().(self).emitscip-python python gramps 6.0.7 `gramps.gen.utils.callback`/Callback#emit().("tag-rebuild") |
| 2657 | |
| 2658 | def get_save_pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_save_path().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_save_path().(self)): |
| 2659 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_save_path().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. |
| 2660 | |
| 2661 | def _set_save_pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self), directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(directory)): |
| 2662 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory. = directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(directory) |
| 2663 | if directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(directory): |
| 2664 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).full_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#full_name. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..abspathscip-python python python-stdlib 3.11 genericpath/exists().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory.) |
| 2665 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#path. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).full_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#full_name. |
| 2666 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).brief_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#brief_name. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..basenamescip-python python python-stdlib 3.11 genericpath/exists().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self)._directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_directory.) |
| 2667 | else: |
| 2668 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).full_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#full_name. = None |
| 2669 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).pathscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#path. = None |
| 2670 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_save_path().(self).brief_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#brief_name. = None |
| 2671 | |
| 2672 | def report_bm_changescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#report_bm_change().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#report_bm_change().(self)): |
| 2673 | """ |
| 2674 | Add 1 to the number of bookmark changes during this session. |
| 2675 | """ |
| 2676 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#report_bm_change().(self)._bm_changesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_bm_changes. += 1 |
| 2677 | |
| 2678 | def db_has_bm_changesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_has_bm_changes().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_has_bm_changes().(self)): |
| 2679 | """ |
| 2680 | Return whethere there were bookmark changes during the session. |
| 2681 | """ |
| 2682 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#db_has_bm_changes().(self)._bm_changesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_bm_changes. > 0 |
| 2683 | |
| 2684 | def get_undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_undodb().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_undodb().(self)): |
| 2685 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_undodb().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb. |
| 2686 | |
| 2687 | def undoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo().(self), update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo().(update_history)=True): |
| 2688 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb..undoscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#undo().(update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undo().(update_history)) |
| 2689 | |
| 2690 | def redoscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo().(self), update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo().(update_history)=True): |
| 2691 | return selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo().(self).undodbscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#undodb..redoscip-python python gramps 6.0.7 `gramps.gen.db.undoredo`/DbUndo#redo().(update_historyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#redo().(update_history)) |
| 2692 | |
| 2693 | def get_summaryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self)): |
| 2694 | """ |
| 2695 | Returns dictionary of summary item. |
| 2696 | Should include, if possible: |
| 2697 | |
| 2698 | _("Number of people") |
| 2699 | _("Version") |
| 2700 | _("Data version") |
| 2701 | """ |
| 2702 | return { |
| 2703 | _("Number of people"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_peoplescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_people().(), |
| 2704 | _("Number of families"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_familiesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_families().(), |
| 2705 | _("Number of sources"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_sourcesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_sources().(), |
| 2706 | _("Number of citations"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_citationsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_citations().(), |
| 2707 | _("Number of events"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_eventsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_events().(), |
| 2708 | _("Number of media"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_mediascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_media().(), |
| 2709 | _("Number of places"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_placesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_places().(), |
| 2710 | _("Number of repositories"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_repositoriesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_repositories().(), |
| 2711 | _("Number of notes"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_notesscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_notes().(), |
| 2712 | _("Number of tags"): selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).get_number_of_tagsscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_number_of_tags().(), |
| 2713 | _("Schema version"): ".".joinscip-python python python-stdlib 3.11 builtins/str#join().([strscip-python python python-stdlib 3.11 builtins/str#(v) for v in selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_summary().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.]), |
| 2714 | } |
| 2715 | |
| 2716 | def _order_by_person_keyscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(person)): |
| 2717 | """ |
| 2718 | All non pa/matronymic surnames are used in indexing. |
| 2719 | pa/matronymic not as they change for every generation! |
| 2720 | returns a byte string |
| 2721 | """ |
| 2722 | order_by = "" |
| 2723 | if personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(person).primary_name: |
| 2724 | order_by_list = [ |
| 2725 | surname.surname + " " + personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(person).primary_name.first_name |
| 2726 | for surname in personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_order_by_person_key().(person).primary_name.surname_list |
| 2727 | if ( |
| 2728 | intscip-python python python-stdlib 3.11 builtins/int#(surname.origintype) |
| 2729 | not in [NameOriginTypescip-python python gramps 6.0.7 `gramps.gen.lib.nameorigintype`/NameOriginType#.PATRONYMICscip-python python gramps 6.0.7 `gramps.gen.lib.nameorigintype`/NameOriginType#PATRONYMIC., NameOriginTypescip-python python gramps 6.0.7 `gramps.gen.lib.nameorigintype`/NameOriginType#.MATRONYMICscip-python python gramps 6.0.7 `gramps.gen.lib.nameorigintype`/NameOriginType#MATRONYMIC.] |
| 2730 | ) |
| 2731 | ] |
| 2732 | order_by = " ".joinscip-python python python-stdlib 3.11 builtins/str#join().(order_by_list) |
| 2733 | return glocalescip-python python gramps 6.0.7 `gramps.gen.const`/GRAMPS_LOCALE..sort_keyscip-python python gramps 6.0.7 `gramps.gen.utils.grampslocale`/GrampsLocale#sort_key().(order_by) |
| 2734 | |
| 2735 | def _get_person_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_person_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_person_data().(self), personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_person_data().(person)): |
| 2736 | """ |
| 2737 | Given a Person, return primary_name.first_name and surname. |
| 2738 | """ |
| 2739 | given_name = "" |
| 2740 | surname = "" |
| 2741 | if personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_person_data().(person): |
| 2742 | primary_name = personscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_person_data().(person).get_primary_name() |
| 2743 | if primary_name: |
| 2744 | given_name = primary_name.get_first_name() |
| 2745 | surname_list = primary_name.get_surname_list() |
| 2746 | if len(surname_list) > 0: |
| 2747 | surname_obj = surname_list[0] |
| 2748 | if surname_obj: |
| 2749 | surname = surname_obj.surname |
| 2750 | return (given_name, surname) |
| 2751 | |
| 2752 | def _get_place_datascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_place_data().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_place_data().(self), placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_place_data().(place)): |
| 2753 | """ |
| 2754 | Given a Place, return the first PlaceRef handle. |
| 2755 | """ |
| 2756 | enclosed_by = "" |
| 2757 | for placeref in placescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_place_data().(place).get_placeref_list(): |
| 2758 | enclosed_by = placeref.ref |
| 2759 | break |
| 2760 | return enclosed_by |
| 2761 | |
| 2762 | def _gramps_upgradescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self), versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version), directoryscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(directory), callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(callback)=None): |
| 2763 | """ |
| 2764 | Here we do the calls for stepwise schema upgrades. |
| 2765 | We assume that we need to rebuild secondary and reference maps. |
| 2766 | """ |
| 2767 | UpdateCallbackscip-python python gramps 6.0.7 `gramps.gen.updatecallback`/UpdateCallback#.__init__scip-python python gramps 6.0.7 `gramps.gen.updatecallback`/UpdateCallback#__init__().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self), callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(callback)) |
| 2768 | |
| 2769 | start = timescip-python python python-stdlib 3.11 time/__init__:.timescip-python python python-stdlib 3.11 time/time().() |
| 2770 | |
| 2771 | from gramps.gen.db.upgradescip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/__init__: import ( |
| 2772 | gramps_upgrade_14scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_14()., |
| 2773 | gramps_upgrade_15scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_15()., |
| 2774 | gramps_upgrade_16scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_16()., |
| 2775 | gramps_upgrade_17scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_17()., |
| 2776 | gramps_upgrade_18scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_18()., |
| 2777 | gramps_upgrade_19scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_19()., |
| 2778 | gramps_upgrade_20scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_20()., |
| 2779 | gramps_upgrade_21scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_21()., |
| 2780 | ) |
| 2781 | |
| 2782 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 14: |
| 2783 | gramps_upgrade_14scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_14().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2784 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 15: |
| 2785 | gramps_upgrade_15scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_15().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2786 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 16: |
| 2787 | gramps_upgrade_16scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_16().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2788 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 17: |
| 2789 | gramps_upgrade_17scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_17().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2790 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 18: |
| 2791 | gramps_upgrade_18scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_18().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2792 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 19: |
| 2793 | gramps_upgrade_19scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_19().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2794 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 20: |
| 2795 | gramps_upgrade_20scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_20().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2796 | if versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(version) < 21: |
| 2797 | gramps_upgrade_21scip-python python gramps 6.0.7 `gramps.gen.db.upgrade`/gramps_upgrade_21().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self)) |
| 2798 | |
| 2799 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).rebuild_secondaryscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#rebuild_secondary().(callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(callback)) |
| 2800 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).reindex_reference_mapscip-python python gramps 6.0.7 `gramps.gen.db.base`/DbWriteBase#reindex_reference_map().(callbackscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(callback)) |
| 2801 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#surname_list. = selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).get_surname_listscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_surname_list().() |
| 2802 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).resetscip-python python gramps 6.0.7 `gramps.gen.updatecallback`/UpdateCallback#reset().() |
| 2803 | |
| 2804 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).set_schema_versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_gramps_upgrade().(self).VERSIONscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#VERSION.[0]) |
| 2805 | LOGscip-python python gramps 6.0.7 `gramps.gen.db.generic`/LOG..debugscip-python python python-stdlib 3.11 logging/Logger#debug().("Upgrade time: %d seconds", intscip-python python python-stdlib 3.11 builtins/int#(timescip-python python python-stdlib 3.11 time/__init__:.timescip-python python python-stdlib 3.11 time/time().() - start)) |
| 2806 | |
| 2807 | def get_schema_versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_schema_version().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_schema_version().(self)): |
| 2808 | """Return current schema version as an int""" |
| 2809 | return intscip-python python python-stdlib 3.11 builtins/int#(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#get_schema_version().(self)._get_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().("version", defaultscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_get_metadata().(default)="0")) |
| 2810 | |
| 2811 | def set_schema_versionscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(self), valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(value)): |
| 2812 | """set the current schema version""" |
| 2813 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(self)._set_metadatascip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#_set_metadata().("version", strscip-python python python-stdlib 3.11 builtins/str#(valuescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_schema_version().(value))) |
| 2814 | |
| 2815 | def set_serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(self), serializer_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(serializer_name)): |
| 2816 | """ |
| 2817 | Set the serializer to 'blob' or 'json' |
| 2818 | """ |
| 2819 | if serializer_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(serializer_name) == "blob": |
| 2820 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer. = BlobSerializerscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/BlobSerializer# |
| 2821 | elif serializer_namescip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(serializer_name) == "json": |
| 2822 | selfscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#set_serializer().(self).serializerscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric#serializer. = JSONSerializerscip-python python gramps 6.0.7 `gramps.gen.lib.serialize`/JSONSerializer# |
| 2823 | |
| 2824 | |
| 2825 | Databasescip-python python gramps 6.0.7 `gramps.gen.db.generic`/Database. = DbGenericscip-python python gramps 6.0.7 `gramps.gen.db.generic`/DbGeneric# |