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

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

Add code to allow ingest of docs when harvest button clicked - NB,
harvest completes first of all, then the ingest is ran asynchronously
since it can take some time. If the user has provided an email
address for the provider, the results are then mailed to them.

  • 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"
11NEW_PAGE_TITLE = "Creating new provider info"
12HELP_PAGE_TITLE = 'OAI Info Editor Help Page'
13VIEW_PAGE_TITLE = "View data for provider, '%s'"
14VIEW_ALL_DATA_TITLE = "View all provider data"
15EDIT_PAGE_TITLE = "Edit data for provider, '%s'"
16
17INGEST_RESULTS_TITLE = 'Results from %s document ingest'
18
19SUBMIT_BUTTON_TEXT = 'Submit checked requests together'
20
21# flag to indicate an input field is a checkbox
22CHECKBOX_SUFFIX = "checked"
23
24# key to use in session when displaying text via a javascript pop up
25POP_UP_MESSAGE_SESSION_KEY = "popUpSessionKey"
26
27# name to use in hidden field for storing record ID
28MAIN_ID_FLAG = "main_id"
29
30ALL_PROVIDER_IDS = "display_all"
31
32DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
33
34# name to use for new provider infos to mark them out as new
35NEW_PROVIDER_INFO_NAME = "newPI"
36
37# dummy strings to use when constructing the harvest urls - these should be
38# replaced with the real provider and repository names
39PROVIDER_REPLACEMENT = "xyz321"
40REPOSITORY_REPLACEMENT = "123zyx"
41
42# different types of text input fields - used by utils.EditTextField
43TEXT_FIELD = "text_field"
44TEXT_AREA = "text_area"
Note: See TracBrowser for help on using the repository browser.