Package Simple :: Module _SimpleAccess
[frames] | no frames]

Module _SimpleAccess

source code

Provide a simplified database access interface to the GRAMPS database.

Classes
  SimpleAccess
Provide a simplified database access system.
Functions
int
by_date(event1, event2)
Sort function that will compare two events by their dates.
source code

Imports: NoneType, gen, DateHandler, Utils, name_displayer, ReportUtils, EventType, Config


Function Details

by_date(event1, event2)

source code 

Sort function that will compare two events by their dates.

Parameters:
  • event1 (Event) - first event
  • event2 (Event) - second event
Returns: int
Returns -1 if event1 < event2, 0 if they are equal, and 1 if they are the same.