Trees | Indices | Help |
|
---|
|
1 # 2 # Gramps - a GTK+/GNOME based genealogy program 3 # 4 # Copyright (C) 2000-2006 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: childreftype.py 10103 2008-02-24 13:55:55Z acraphae $ 22 23 """ 24 Provide the different child reference types. 25 """ 26 #------------------------------------------------------------------------- 27 # 28 # standard python modules 29 # 30 #------------------------------------------------------------------------- 31 from gettext import gettext as _ 32 33 #------------------------------------------------------------------------- 34 # 35 # GRAMPS modules 36 # 37 #------------------------------------------------------------------------- 38 from gen.lib.grampstype import GrampsType, init_map 3941 """ 42 Provide the different ChildRef types. 43 """ 44 45 NONE = 0 46 BIRTH = 1 47 ADOPTED = 2 48 STEPCHILD = 3 49 SPONSORED = 4 50 FOSTER = 5 51 UNKNOWN = 6 52 CUSTOM = 7 53 54 _CUSTOM = CUSTOM 55 _DEFAULT = BIRTH 56 57 _DATAMAP = [ 58 (NONE, _("None"), "None"), 59 (BIRTH, _("Birth"), "Birth"), 60 (ADOPTED, _("Adopted"), "Adopted"), 61 (STEPCHILD, _("Stepchild"), "Stepchild"), 62 (SPONSORED, _("Sponsored"), "Sponsored"), 63 (FOSTER, _("Foster"), "Foster"), 64 (UNKNOWN, _("Unknown"), "Unknown"), 65 (CUSTOM, _("Custom"), "Custom"), 66 ] 67 68 _I2SMAP = init_map(_DATAMAP, 0, 1) 69 _S2IMAP = init_map(_DATAMAP, 1, 0) 70 _I2EMAP = init_map(_DATAMAP, 0, 2) 71 _E2IMAP = init_map(_DATAMAP, 2, 0) 7275
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 9 21:53:32 2008 | http://epydoc.sourceforge.net |