- Timestamp:
- 4 Feb 2008, 10:12:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/PatchExtendedWidgetsCPSDateTimeWidget.py
r3096 r3099 31 31 datamodel[field_id] = None 32 32 return 1 33 # 33 #import pdb;pdb.set_trace() 34 34 if self.view_format.startswith('iso8601'): 35 35 if re.match(r'^[0-9]+-[0-9]{2}-[0-9]{2}', date) is not None: … … 39 39 return 0 40 40 else: 41 if re.match(r'^[0-9]?[0-9] /[0-9]?[0-9]/[0-9]{2,4}$', date) is not None:41 if re.match(r'^[0-9]?[0-9][/,\-,\.][0-9]?[0-9][/,\-,\.][0-9]{2,4}$', date) is not None: 42 42 d, m, y = re.split(r'[/,\-,\.]',date) # always use d/m/y and use /,- or . as separator 43 43 #d, m, y = date.split('/') # always use d/m/y
Note: See TracChangeset for help on using the changeset viewer.