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

Source Code for Module gen.db.dbconst

 1  # 
 2  # Gramps - a GTK+/GNOME based genealogy program 
 3  # 
 4  # Copyright (C) 2004-2007 Donald N. Allingham 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify 
 7  # it under the terms of the GNU General Public License as published by 
 8  # the Free Software Foundation; either version 2 of the License, or 
 9  # (at your option) any later version. 
10  # 
11  # This program is distributed in the hope that it will be useful, 
12  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
13  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
14  # GNU General Public License for more details. 
15  # 
16  # You should have received a copy of the GNU General Public License 
17  # along with this program; if not, write to the Free Software 
18  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
19  # 
20   
21  # $Id: dbconst.py 10099 2008-02-23 08:38:55Z acraphae $ 
22   
23  #------------------------------------------------------------------------- 
24  # 
25  # standard python modules 
26  # 
27  #------------------------------------------------------------------------- 
28   
29  #------------------------------------------------------------------------- 
30  # 
31  # constants 
32  # 
33  #------------------------------------------------------------------------- 
34  APP_GRAMPS      = "application/x-gramps" 
35  APP_GRAMPS_XML  = "application/x-gramps-xml" 
36  APP_GEDCOM      = "application/x-gedcom" 
37  APP_GRAMPS_PKG  = "application/x-gramps-package" 
38  APP_GENEWEB     = "application/x-geneweb" 
39  APP_VCARD       = ["text/x-vcard", "text/x-vcalendar"] 
40   
41  PERSON_KEY     = 0 
42  FAMILY_KEY     = 1 
43  SOURCE_KEY     = 2 
44  EVENT_KEY      = 3 
45  MEDIA_KEY      = 4 
46  PLACE_KEY      = 5 
47  REPOSITORY_KEY = 6 
48  REFERENCE_KEY  = 7 
49  NOTE_KEY       = 8 
50   
51  PERSON_COL_KEY      = 'columns' 
52  CHILD_COL_KEY       = 'child_columns' 
53  PLACE_COL_KEY       = 'place_columns' 
54  SOURCE_COL_KEY      = 'source_columns' 
55  MEDIA_COL_KEY       = 'media_columns' 
56  REPOSITORY_COL_KEY  = 'repository_columns' 
57  EVENT_COL_KEY       = 'event_columns' 
58  FAMILY_COL_KEY      = 'family_columns' 
59  NOTE_COL_KEY        = 'note_columns' 
60