Changeset 2723
- Timestamp:
- 20 Nov 2007, 22:43:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2710 r2723 48 48 {'id': 'check_words', 'type': 'string', 'mode': 'w', 49 49 'label': 'Checking for words'}, 50 ) 50 ) 51 51 52 52 field_types = ('CPS Password Field',) … … 421 421 422 422 def _getLevels(self): 423 d = {'':' N/A','000':'Pre-Studies'}423 d = {'':'','000':'Pre-Studies'} 424 424 for y in range(100,800,100): 425 425 d['%s' % str(y)] = 'Year %1d (%3d Level)' % (y/100,y) … … 514 514 verdicts = self._getVerdicts(datastructure) 515 515 if not value: 516 v = value = verdicts[' N/A']516 v = value = verdicts[''] 517 517 if not verdicts.has_key(value): 518 518 datastructure.setError(widget_id, "'%s' not a valid verdict key" % v)
Note: See TracChangeset for help on using the changeset viewer.