source: TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/lib/constants.py @ 5233

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/lib/constants.py@5233
Revision 5233, 1.1 KB checked in by cbyrom, 11 years ago (diff)

Add delete functionality to front tier of oai editor. Include
message to confirm the data has been completed, as a pop up, when
the operation is done. Update tests and simplify model + dal layer.

  • Property svn:executable set to *
Line 
1'''
2 Module to store various constants used by the oai info editor controller
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.  This also allows
5 centralisation of data which might need to be changed to tailor the look and
6 feel of the web app.
7 
8 @author: C Byrom, Tessella Apr 2009
9'''
10EDITOR_HOME_TITLE = "OAI Info Editor Home"
11HELP_PAGE_TITLE = 'OAI Info Editor Help Page'
12VIEW_PAGE_TITLE = "View data for provider, '%s'"
13VIEW_ALL_DATA_TITLE = "View all provider data"
14EDIT_PAGE_TITLE = "Edit data for provider, '%s'"
15
16SUBMIT_BUTTON_TEXT = 'Submit checked requests together'
17
18# flag to indicate an input field is a checkbox
19CHECKBOX_SUFFIX = "checked"
20
21# key to use in session when displaying text via a javascript pop up
22POP_UP_MESSAGE_SESSION_KEY = "popUpSessionKey"
23
24# name to use in hidden field for storing record ID
25MAIN_ID_FLAG = "main_id"
26
27ALL_PROVIDER_IDS = "display_all"
28
29DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
30
31# different types of text input fields - used by utils.EditTextField
32TEXT_FIELD = "text_field"
33TEXT_AREA = "text_area"
Note: See TracBrowser for help on using the repository browser.