- Timestamp:
- 19 Feb 2012, 10:05:19 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/widgets/datewidget.py
r7599 r7668 45 45 value = datetime.strptime(input, self.date_format) 46 46 except (ValueError, IndexError), v: 47 raise ConversionError( _("Invalid datetime data"), v)47 raise ConversionError("Invalid datetime data", v) 48 48 return value.date() 49 49 -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/phonewidget.py
r7494 r7668 47 47 48 48 country = schema.TextLine( 49 title= _('Country Code'),50 description= _('The country code of the phone number.'),49 title=u'Country Code', 50 description=u'The country code of the phone number.', 51 51 min_length=1, 52 52 constraint=re.compile(r'^[0-9]+$').search, … … 55 55 56 56 area = schema.TextLine( 57 title= _('Area Code'),58 description= _('The area code of the phone number.'),57 title=u'Area Code', 58 description=u'The area code of the phone number.', 59 59 min_length=1, 60 60 constraint=re.compile(r'^[0-9]+$').search, … … 62 62 63 63 extension = schema.TextLine( 64 title= _('Direct Line'),65 description= _('The direct line of the phone number.'),64 title=u'Direct Line', 65 description=u'The direct line of the phone number.', 66 66 min_length=3, 67 67 constraint=re.compile(r'^[0-9]{3,}$').search,
Note: See TracChangeset for help on using the changeset viewer.