Changeset 7428 for main/waeup.sirp/trunk/src/waeup/sirp/widgets
- Timestamp:
- 21 Dec 2011, 12:20:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/widgets/phonewidget.py
r7418 r7428 141 141 def setRenderedValue(self, value): 142 142 """See zope.formlib.interfaces.IWidget""" 143 if isinstance(value, unicode) :144 country, area, extension = value.split('-' )143 if isinstance(value, unicode) and '-' in value: 144 country, area, extension = value.split('-', 2) 145 145 self.widgets['country'].setRenderedValue(country) 146 146 self.widgets['area'].setRenderedValue(area) 147 147 self.widgets['extension'].setRenderedValue(extension) 148 148 return 149 return 149 150 150 151 def setPrefix(self, prefix):
Note: See TracChangeset for help on using the changeset viewer.