Package omeroweb :: Module settings
[hide private]
[frames] | no frames]

Module settings

source code

Classes [hide private]
  LeaveUnset
Functions [hide private]
 
parse_boolean(s) source code
 
parse_paths(s) source code
 
check_server_type(s) source code
 
check_session_engine(s) source code
 
identity(x) source code
 
remove_slash(s) source code
 
leave_none_unset(s) source code
 
leave_none_unset_int(s) source code
 
process_custom_settings(module) source code
 
report_settings(module) source code
 
load_server_list() source code
Variables [hide private]
  logger = logging.getLogger(__name__)
  OMERO_HOME = os.path.normpath(OMERO_HOME)
  INSIGHT_JARS = os.path.join(OMERO_HOME, "lib", "insight").repl...
  WEBSTART = True
  LOGDIR = os.path.join(OMERO_HOME, 'var', 'log').replace('\\', ...
  LOGGING = {'version': 1, 'disable_existing_loggers': True, 'fo...
  CONFIG_XML = os.path.join(OMERO_HOME, 'etc', 'grid', 'config.x...
  FASTCGI = "fastcgi"
  FASTCGITCP = "fastcgi-tcp"
  FASTCGI_TYPES = FASTCGI, FASTCGITCP
  DEVELOPMENT = "development"
  DEFAULT_SERVER_TYPE = "fastcgi-tcp"
  ALL_SERVER_TYPES = FASTCGITCP, FASTCGI, DEVELOPMENT
  DEFAULT_SESSION_ENGINE = 'django.contrib.sessions.backends.file'
  SESSION_ENGINE_VALUES = 'django.contrib.sessions.backends.db',...
  CUSTOM_SETTINGS_MAPPINGS = {"omero.web.apps": ["ADDITIONAL_APP...
  TEMPLATE_DEBUG = DEBUG
  SITE_ID = 1
  TIME_ZONE = 'Europe/London'
  FIRST_DAY_OF_WEEK = 0
  LANGUAGE_CODE = 'en-gb'
  SECRET_KEY = '@@k%g#7=%4b6ib7yr1tloma&g0s2nni6ljf!m0h&x9c712c7yj'
  USE_I18N = True
  MIDDLEWARE_CLASSES = 'django.middleware.common.CommonMiddlewar...
  ROOT_URLCONF = 'omeroweb.urls'
  STATICFILES_FINDERS = "django.contrib.staticfiles.finders.File...
  STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static'...
  TEMPLATE_CONTEXT_PROCESSORS = "django.core.context_processors....
  TEMPLATE_LOADERS = 'django.template.loaders.filesystem.Loader'...
  INSTALLED_APPS = 'django.contrib.staticfiles', 'django.contrib...
  FEEDBACK_URL = "qa.openmicroscopy.org.uk:80"
  SESSION_FILE_PATH = tempfile.gettempdir()
  SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  SESSION_COOKIE_AGE = 86400
  FILE_UPLOAD_TEMP_DIR = tempfile.gettempdir()
  FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  DEFAULT_IMG = os.path.join(os.path.dirname(__file__), 'webgate...
  DEFAULT_USER = os.path.join(os.path.dirname(__file__), 'webgat...
  MANAGERS = ADMINS
  PAGE = 200
  EMAIL_TEMPLATES = {'create_share': {'html_content': '<p>Hi,</p...

Imports: os, sys, datetime, logging, omero, tempfile, re, json, LockException, Server


Variables Details [hide private]

INSIGHT_JARS

Value:
os.path.join(OMERO_HOME, "lib", "insight").replace('\\', '/')

LOGDIR

Value:
os.path.join(OMERO_HOME, 'var', 'log').replace('\\', '/')

LOGGING

Value:
{'version': 1, 'disable_existing_loggers': True, 'formatters': {'stand\
ard': {'format': '%(asctime)s %(levelname)5.5s [%(name)40.40s] (proc.%\
(process)5.5d) %(funcName)s:%(lineno)d %(message)s'},}, 'handlers': {'\
default': {'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHa\
ndler', 'filename': os.path.join(LOGDIR, 'OMEROweb.log').replace('\\',\
 '/'), 'maxBytes': 1024* 1024* 5, 'backupCount': 5, 'formatter': 'stan\
dard',}, 'request_handler': {'level': 'DEBUG', 'class': 'logging.handl\
ers.RotatingFileHandler', 'filename': os.path.join(LOGDIR, 'OMEROweb_r\
...

CONFIG_XML

Value:
os.path.join(OMERO_HOME, 'etc', 'grid', 'config.xml')

SESSION_ENGINE_VALUES

Value:
'django.contrib.sessions.backends.db', 'django.contrib.sessions.backen\
ds.file', 'django.contrib.sessions.backends.cache', 'django.contrib.se\
ssions.backends.cached_db'

CUSTOM_SETTINGS_MAPPINGS

Value:
{"omero.web.apps": ["ADDITIONAL_APPS", '[]', json.loads], "omero.web.p\
ublic.enabled": ["PUBLIC_ENABLED", "false", parse_boolean], "omero.web\
.public.url_filter": ["PUBLIC_URL_FILTER", r'^/(?!webadmin)', re.compi\
le], "omero.web.public.server_id": ["PUBLIC_SERVER_ID", 1, int], "omer\
o.web.public.user": ["PUBLIC_USER", None, leave_none_unset], "omero.we\
b.public.password": ["PUBLIC_PASSWORD", None, leave_none_unset], "omer\
o.web.public.cache.enabled": ["PUBLIC_CACHE_ENABLED", "false", parse_b\
oolean], "omero.web.public.cache.key": ["PUBLIC_CACHE_KEY", "omero.web\
...

MIDDLEWARE_CLASSES

Value:
'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.\
middleware.SessionMiddleware', 'django.contrib.messages.middleware.Mes\
sageMiddleware',

STATICFILES_FINDERS

Value:
"django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib\
.staticfiles.finders.AppDirectoriesFinder"

STATIC_ROOT

Value:
os.path.join(os.path.dirname(__file__), 'static').replace('\\', '/')

TEMPLATE_CONTEXT_PROCESSORS

Value:
"django.core.context_processors.debug", "django.core.context_processor\
s.i18n", "django.core.context_processors.media", "django.core.context_\
processors.static", "django.contrib.messages.context_processors.messag\
es"

TEMPLATE_LOADERS

Value:
'django.template.loaders.filesystem.Loader', 'django.template.loaders.\
app_directories.Loader',

INSTALLED_APPS

Value:
'django.contrib.staticfiles', 'django.contrib.markup', 'django.contrib\
.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'dja\
ngo.contrib.sites', 'omeroweb.feedback', 'omeroweb.webadmin', 'omerowe\
b.webclient', 'omeroweb.webgateway', 'omeroweb.webtest', 'omeroweb.web\
redirect', 'omeroweb.webstart',

DEFAULT_IMG

Value:
os.path.join(os.path.dirname(__file__), 'webgateway', 'static', 'webga\
teway', 'img', 'image128.png').replace('\\', '/')

DEFAULT_USER

Value:
os.path.join(os.path.dirname(__file__), 'webgateway', 'static', 'webga\
teway', 'img', 'personal32.png').replace('\\', '/')

EMAIL_TEMPLATES

Value:
{'create_share': {'html_content': '<p>Hi,</p><p>I would like to share \
some of my data with you.<br/>Please find it on the <a href="%s?server\
=%i">%s?server=%i</a>.</p><p>%s</p>', 'text_content': 'Hi, I would lik\
e to share some of my data with you. Please find it on the %s?server=%\
i. /n %s'}, 'add_member_to_share': {'html_content': '<p>Hi,</p><p>I wo\
uld like to share some of my data with you.<br/>Please find it on the \
<a href="%s?server=%i">%s?server=%i</a>.</p><p>%s</p>', 'text_content'\
: 'Hi, I would like to share some of my data with you. Please find it \
...