Changeset 408
- Timestamp:
- 07/20/06 05:59:15
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
geolocation/trunk/skins/geolocation/edit_location.cpt
r407 r408 45 45 <!-- <label for="latitude" i18n:translate="label_latitude"> 46 46 Latitude 47 </label> 48 <div tal:content="error">Validation error output</div> -->47 </label>--> 48 <div tal:content="error">Validation error output</div> 49 49 <input type="hidden" name="latitude" id="latitude" 50 50 tal:attributes="value request/latitude|latitude" /> … … 55 55 <!-- <label for="longitude" i18n:translate="label_longitude"> 56 56 Longitude 57 </label> 58 <div tal:content="error">Validation error output</div> -->57 </label>--> 58 <div tal:content="error">Validation error output</div> 59 59 <input type="hidden" name="longitude" id="longitude" 60 60 tal:attributes="value request/longitude|longitude" /> geolocation/trunk/skins/geolocation/validate_location.vpy
r407 r408 16 16 try: 17 17 float(latitude) 18 except:19 state.setError('latitude', _('Latitude is a decimal number'))20 return state.set(status='failure')21 22 try:23 18 float(longitude) 24 19 except: 25 state.setError('l ongitude', _('Longitude is a decimal number'))20 state.setError('latitude', _('For saving select your location point on the map')) 26 21 return state.set(status='failure') 27 22
