Changeset 8074 for main/waeup.kofa/trunk/src
- Timestamp:
- 9 Apr 2012, 10:31:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py
r7883 r8074 121 121 _("Int. prefix requires format '+NNN'"), 122 122 ValueError('invalid international prefix')) 123 if (parts[1] != '' and not RE_NUMBERS.match(parts[1])) or ( 124 parts[2] != '' and not RE_NUMBERS_AND_HYPHENS.match( 125 parts[2])): 123 error1 = parts[1] != '' and not RE_NUMBERS.match(parts[1]) 124 if len(parts) == 3: 125 error2 = parts[2] != '' and not RE_NUMBERS_AND_HYPHENS.match(parts[2]) 126 else: 127 error2 = False 128 if error1 or error2: 126 129 raise ConversionError( 127 130 _("Phone numbers may contain numbers only."),
Note: See TracChangeset for help on using the changeset viewer.