Package gen :: Package db :: Module base
[frames] | no frames]

Module base

source code

Base class for the GRAMPS databases. All database interfaces should inherit from this class.

Classes
  GrampsDbBookmarks
  GrampsDbBase
GRAMPS database object.
  Transaction
Define a group of database commits that define a single logical operation.
Variables
  LOG = logging.getLogger(".GrampsDb")
  CLASS_TO_KEY_MAP = {'Event': 3, 'Family': 1, 'MediaObject': 4,...
  KEY_TO_CLASS_MAP = {0: 'Person', 1: 'Family', 2: 'Source', 3: ...

Imports: cPickle, time, random, locale, os, maxint, db, _, logging, MediaObject, Person, Family, Source, Event, Place, Repository, Note, GenderStats, Researcher, Callback, CursorIterator, PERSON_KEY, FAMILY_KEY, SOURCE_KEY, EVENT_KEY, MEDIA_KEY, PLACE_KEY, REPOSITORY_KEY, NOTE_KEY, REFERENCE_KEY, PERSON_COL_KEY, FAMILY_COL_KEY, CHILD_COL_KEY, PLACE_COL_KEY, SOURCE_COL_KEY, MEDIA_COL_KEY, EVENT_COL_KEY, REPOSITORY_COL_KEY, NOTE_COL_KEY


Variables Details

CLASS_TO_KEY_MAP

Value:
{'Event': 3,
 'Family': 1,
 'MediaObject': 4,
 'Note': 8,
 'Person': 0,
 'Place': 5,
 'Repository': 6,
 'Source': 2}

KEY_TO_CLASS_MAP

Value:
{0: 'Person',
 1: 'Family',
 2: 'Source',
 3: 'Event',
 4: 'MediaObject',
 5: 'Place',
 6: 'Repository',
 8: 'Note'}