source: MILK/trunk/milk_server/milk_server/controllers/browse/browserconstants.py @ 5302

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/controllers/browse/browserconstants.py@5302
Revision 5302, 613 bytes checked in by cbyrom, 11 years ago (diff)

Simplify structure of discovery controller, using the results template
to render searches even when no results are found. Add new error
dict to avoid confusing with the error dict used by the formencode
input checker. Add additional input checks and improve error handling.
Add dropdown list to select order by values + add new constants
module to store associated data and error keys + tidy up DiscoveryState?
object to make clearer and logic more consistent + fix paging controls
for results data.

Line 
1'''
2 Module to store various constants used by the browse and discovery controllers
3 NB, the primary purpose of this is to separate these out from the controllers
4 so they can be used in the test suite to check results
5 
6 @author: C Byrom, Tessella May 2009
7'''
8DISCOVERY_HOME_TITLE = "Discovery service search"
9
10# various error messages
11INCOMPLETE_SEARCH_INPUT_MESSAGE = "Incomplete search inputs - please enter values for: "
12INVALID_BBOX_MESSAGE = "Invalid bounding box dimensions entered: "
13INVALID_DATERANGE_MESSAGE = "Invalid dates entered: "
14INCOMPLETE_DATERANGE_MESSAGE = "Incomplete date range entered: "
Note: See TracBrowser for help on using the repository browser.