source: TI03-DataExtractor/branches/old_stuff/dx-0.1.0/validate.py @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx-0.1.0/validate.py@793
Revision 793, 1.0 KB checked in by astephen, 13 years ago (diff)

Put all the old code in the old_stuff branch.

RevLine 
[793]1"""
2validate.py
3===========
4
5Validate module for the extractor package.
6
7This module holds the Validater class that is used
8to check and validate the contents of user requests
9generated by the extractor web forms.
10
11Version history
12===============
13
14Version 1.0:  - 01/03/2004
15              - Ag Stephens, British Atmospheric Data Centre.
16              - First version.
17
18"""
19
20class Validater:
21   
22    def __init__(self, dataset, request):
23        self.request=request
24        self.dataset=dataset
25        self.validateRequest()
26
27    def validateRequest(self):
28        res1=self.validateDate(self.request["start_time"])
29        res2=self.validateDate(self.request["end_time"])
30        return (res1 or res2)
31
32    def validateDate(self, date_time):
33        pass
34         
35    def validateTimeInterval(self):
36        pass
37
38    def validateHorizDomain(self):
39        pass
40
41    def validateVerticalDomain(self):
42        pass
43
44    def validateResolution(self):
45        pass
46
47    def validateOutputType(self):
48        pass
49
50    def validateRequestSize(self):
51        pass
Note: See TracBrowser for help on using the repository browser.