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 # $Id: eventroletype.py 10103 2008-02-24 13:55:55Z acraphae $ 21 22 """ 23 Provide the different event roles. 24 """ 25 26 #------------------------------------------------------------------------ 27 # 28 # 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 UNKNOWN = -1 43 CUSTOM = 0 44 PRIMARY = 1 45 CLERGY = 2 46 CELEBRANT = 3 47 AIDE = 4 48 BRIDE = 5 49 GROOM = 6 50 WITNESS = 7 51 FAMILY = 8 52 53 _CUSTOM = CUSTOM 54 _DEFAULT = PRIMARY 55 56 _DATAMAP = [ 57 (UNKNOWN, _("Unknown"), "Unknown"), 58 (CUSTOM, _("Custom"), "Custom"), 59 (PRIMARY, _("Primary"), "Primary"), 60 (CLERGY, _("Clergy"), "Clergy"), 61 (CELEBRANT, _("Celebrant"), "Celebrant"), 62 (AIDE, _("Aide"), "Aide"), 63 (BRIDE, _("Bride"), "Bride"), 64 (GROOM, _("Groom"), "Groom"), 65 (WITNESS, _("Witness"), "Witness"), 66 (FAMILY, _("Family"), "Family"), 67 ] 68 69 _I2SMAP = init_map(_DATAMAP, 0, 1) 70 _S2IMAP = init_map(_DATAMAP, 1, 0) 71 _I2EMAP = init_map(_DATAMAP, 0, 2) 72 _E2IMAP = init_map(_DATAMAP, 2, 0) 7376
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 9 21:53:28 2008 | http://epydoc.sourceforge.net |