Changeset 9123 for branches/pep/src/advanced.py
- Timestamp:
- 12/12/07 09:44:46 (12 months ago)
- Files:
-
- 1 modified
-
branches/pep/src/advanced.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pep/src/advanced.py
r7848 r9123 1 1 ## advanced.py 2 2 ## 3 ## Copyright (C) 2005-2006 Yann Le Boulanger <asterix@lagaule.org>3 ## Copyright (C) 2005-2006 Yann Leboulanger <asterix@lagaule.org> 4 4 ## Copyright (C) 2005-2006 Nikos Kouremenos <kourem@gmail.com> 5 5 ## Copyright (C) 2005 Vincent Hanquez <tab@snarc.org> 6 6 ## 7 ## This program is free software; you can redistribute it and/or modify 7 ## This file is part of Gajim. 8 ## 9 ## Gajim is free software; you can redistribute it and/or modify 8 10 ## it under the terms of the GNU General Public License as published 9 ## by the Free Software Foundation; version 2only.10 ## 11 ## This program is distributed in the hope that it will be useful,11 ## by the Free Software Foundation; version 3 only. 12 ## 13 ## Gajim is distributed in the hope that it will be useful, 12 14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 13 15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 16 ## GNU General Public License for more details. 17 ## 18 ## You should have received a copy of the GNU General Public License 19 ## along with Gajim. If not, see <http://www.gnu.org/licenses/>. 15 20 ## 16 21 … … 99 104 optname = model[iter][C_PREFNAME] 100 105 opttype = model[iter][C_TYPE] 101 if opttype == self.types['boolean'] or optname in ('password', 102 'gpgpassword'): 106 if opttype == self.types['boolean'] or optname == 'password': 103 107 cell.set_property('editable', False) 104 108 else: … … 235 239 type = self.types[type] # i18n 236 240 value = val[OPT_VAL] 237 if name in ('password', 'gpgpassword'):241 if name == 'password': 238 242 #we talk about password 239 243 value = _('Hidden') # override passwords with this string
