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: urltype.py 10103 2008-02-24 13:55:55Z acraphae $ 22 23 """ 24 URL types 25 """ 26 27 #------------------------------------------------------------------------- 28 # 29 # Python modules 30 # 31 #------------------------------------------------------------------------- 32 from gettext import gettext as _ 33 34 #------------------------------------------------------------------------- 35 # 36 # GRAMPS modules 37 # 38 #------------------------------------------------------------------------- 39 from gen.lib.grampstype import GrampsType, init_map 4042 43 UNKNOWN = -1 44 CUSTOM = 0 45 EMAIL = 1 46 WEB_HOME = 2 47 WEB_SEARCH = 3 48 WEB_FTP = 4 49 50 _CUSTOM = CUSTOM 51 _DEFAULT = UNKNOWN 52 53 _DATAMAP = [ 54 (UNKNOWN, _("Unknown"), "Unknown"), 55 (CUSTOM, _("Custom"), "Custom"), 56 (EMAIL, _("E-mail"), "E-mail"), 57 (WEB_HOME, _("Web Home"), "Web Home"), 58 (WEB_SEARCH, _("Web Search"), "Web Search"), 59 (WEB_FTP, _("FTP"), "FTP"), 60 ] 61 62 _I2SMAP = init_map(_DATAMAP, 0, 1) 63 _S2IMAP = init_map(_DATAMAP, 1, 0) 64 _I2EMAP = init_map(_DATAMAP, 0, 2) 65 _E2IMAP = init_map(_DATAMAP, 2, 0) 6669
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 9 21:53:22 2008 | http://epydoc.sourceforge.net |