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: srcmediatype.py 10103 2008-02-24 13:55:55Z acraphae $ 21 22 """ 23 SourceMedia types. 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 AUDIO = 1 45 BOOK = 2 46 CARD = 3 47 ELECTRONIC = 4 48 FICHE = 5 49 FILM = 6 50 MAGAZINE = 7 51 MANUSCRIPT = 8 52 MAP = 9 53 NEWSPAPER = 10 54 PHOTO = 11 55 TOMBSTONE = 12 56 VIDEO = 13 57 58 _CUSTOM = CUSTOM 59 _DEFAULT = BOOK 60 61 _DATAMAP = [ 62 (UNKNOWN, _("Unknown"), "Unknown"), 63 (CUSTOM, _("Custom"), "Custom"), 64 (AUDIO, _("Audio"), "Audio"), 65 (BOOK, _("Book"), "Book"), 66 (CARD, _("Card"), "Card"), 67 (ELECTRONIC, _("Electronic"), "Electronic"), 68 (FICHE, _("Fiche"), "Fiche"), 69 (FILM, _("Film"), "Film"), 70 (MAGAZINE, _("Magazine"), "Magazine"), 71 (MANUSCRIPT, _("Manuscript"), "Manuscript"), 72 (MAP, _("Map"), "Map"), 73 (NEWSPAPER, _("Newspaper"), "Newspaper"), 74 (PHOTO, _("Photo"), "Photo"), 75 (TOMBSTONE, _("Tombstone"), "Tombstone"), 76 (VIDEO, _("Video"), "Video"), 77 ] 78 79 _I2SMAP = init_map(_DATAMAP, 0, 1) 80 _S2IMAP = init_map(_DATAMAP, 1, 0) 81 _I2EMAP = init_map(_DATAMAP, 0, 2) 82 _E2IMAP = init_map(_DATAMAP, 2, 0) 8386
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 9 21:53:30 2008 | http://epydoc.sourceforge.net |