Package muntjac :: Package terminal :: Package gwt :: Package server :: Module constants
[hide private]
[frames] | no frames]

Source Code for Module muntjac.terminal.gwt.server.constants

 1  # Copyright (C) 2012 Vaadin Ltd.  
 2  # Copyright (C) 2012 Richard Lincoln 
 3  #  
 4  # Licensed under the Apache License, Version 2.0 (the "License");  
 5  # you may not use this file except in compliance with the License.  
 6  # You may obtain a copy of the License at  
 7  #  
 8  #     http://www.apache.org/licenses/LICENSE-2.0  
 9  #  
10  # Unless required by applicable law or agreed to in writing, software  
11  # distributed under the License is distributed on an "AS IS" BASIS,  
12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
13  # See the License for the specific language governing permissions and  
14  # limitations under the License. 
15   
16   
17 -class Constants(object):
18 19 NOT_PRODUCTION_MODE_INFO = ('\n' 20 '=================================================================\n' 21 'Muntjac is running in DEBUG MODE.\nAdd productionMode=true to INI ' 22 'to disable debug features.\nTo show debug window, add ?debug to ' 23 'your application URL.\n' 24 '=================================================================') 25 26 WARNING_XSRF_PROTECTION_DISABLED = ('\n' 27 '===========================================================\n' 28 'WARNING: Cross-site request forgery protection is disabled!\n' 29 '===========================================================') 30 31 WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC = ('\n' 32 '===========================================================\n' 33 'WARNING: resourceCacheTime has been set to a non integer value ' 34 'in INI. The default of 1h will be used.\n' 35 '===========================================================') 36 37 WIDGETSET_MISMATCH_INFO = ('\n' 38 '=================================================================\n' 39 'The widgetset in use does not seem to be built for the Muntjac\n' 40 'version in use. This might cause strange problems - a\n' 41 'recompile/deploy is strongly recommended.\n' 42 ' Muntjac version: %s\n' 43 ' Widgetset version: %s\n' 44 '=================================================================') 45 46 URL_PARAMETER_RESTART_APPLICATION = 'restartApplication' 47 URL_PARAMETER_CLOSE_APPLICATION = 'closeApplication' 48 URL_PARAMETER_REPAINT_ALL = 'repaintAll' 49 URL_PARAMETER_THEME = 'theme' 50 51 SERVLET_PARAMETER_DEBUG = 'Debug' 52 SERVLET_PARAMETER_PRODUCTION_MODE = 'productionMode' 53 SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION = 'disable-xsrf-protection' 54 SERVLET_PARAMETER_RESOURCE_CACHE_TIME = 'resourceCacheTime' 55 56 # Configurable parameter names 57 PARAMETER_VAADIN_RESOURCES = 'Resources' 58 DEFAULT_BUFFER_SIZE = 32 * 1024 59 MAX_BUFFER_SIZE = 64 * 1024 60 AJAX_UIDL_URI = '/UIDL' 61 THEME_DIRECTORY_PATH = 'VAADIN/themes/' 62 DEFAULT_THEME_CACHETIME = 1000 * 60 * 60 * 24 63 WIDGETSET_DIRECTORY_PATH = 'VAADIN/widgetsets/' 64 65 # Name of the default widget set, used if not specified in INI 66 DEFAULT_WIDGETSET = 'org.muntiacus.MuntjacWidgetSet' 67 68 # Widget set parameter name 69 PARAMETER_WIDGETSET = 'widgetset' 70 ERROR_NO_WINDOW_FOUND = ('No window found. ' 71 'Did you remember to setMainWindow()?') 72 DEFAULT_THEME_NAME = 'reindeer' 73 INVALID_SECURITY_KEY_MSG = 'Invalid security key.' 74 75 # portal configuration parameters 76 PORTAL_PARAMETER_VAADIN_WIDGETSET = 'vaadin.widgetset' 77 PORTAL_PARAMETER_VAADIN_RESOURCE_PATH = 'vaadin.resources.path' 78 PORTAL_PARAMETER_VAADIN_THEME = 'vaadin.theme'
79