Ignore:
Timestamp:
01/06/07 15:09:48 (12 years ago)
Author:
lawrence
Message:

Woops, forgot to commit these last night.
This is the date ordering change for discovery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/DiscoveryGUI.py

    r2533 r2545  
    8787                 
    8888            # ------------- Handle Date Ranges --------------- 
    89             dateRange=[(self.inputs['startDateDay'],iMonth(self.inputs['startDateMon']),self.inputs['startDateYear']), 
     89            try: 
     90                dateRange=[(self.inputs['startDateDay'],iMonth(self.inputs['startDateMon']),self.inputs['startDateYear']), 
    9091                           (self.inputs['endDateDay'],iMonth(self.inputs['endDateMon']),self.inputs['endDateYear'])] 
    91             #default form has blanks, in which case we don't want to check for date range 
    92             if dateRange<>[("","",""),("","","")]: 
    93                 self.__checkdates(dateRange) 
    94             else: dateRange=None 
     92                #default form has blanks, in which case we don't want to check for date range 
     93                if dateRange<>[("","",""),("","","")]: 
     94                   self.__checkdates(dateRange) 
     95                else: dateRange=None            
     96            except: 
     97                self.message='Invalid date provided' 
    9598            if self.message!='': return self.error() 
    9699                         
Note: See TracChangeset for help on using the changeset viewer.