15.2.86. camcops_server.cc_modules.cc_constants

camcops_server/cc_modules/cc_constants.py


Copyright (C) 2012-2020 Rudolf Cardinal (rudolf@pobox.com).

This file is part of CamCOPS.

CamCOPS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CamCOPS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CamCOPS. If not, see <https://www.gnu.org/licenses/>.


Various constants.

class camcops_server.cc_modules.cc_constants.ConfigDefaults(docker: bool = False)[source]

Contains default values for the config, plus some cosmetic defaults for generating specimen config files.

__init__(docker: bool = False) → None[source]
Parameters

docker – Amend defaults so it works within a Docker Compose application without much fiddling?

Defaults for use within Docker:

  • Note that a URL to another container/service looks like protocol://container:port/. Values here must match the Docker Compose file.

property demo_db_url

The demonstration SQLAlchemy URL.

class camcops_server.cc_modules.cc_constants.ConfigParamExportGeneral[source]

Parameters allowed in the [export] section of the CamCOPS config file.

class camcops_server.cc_modules.cc_constants.ConfigParamExportRecipient[source]

Possible configuration file parameters that relate to “export recipient” definitions.

class camcops_server.cc_modules.cc_constants.ConfigParamServer[source]

Parameters allowed in the web server ([server]) section of the CamCOPS config file.

class camcops_server.cc_modules.cc_constants.ConfigParamSite[source]

Parameters allowed in the main [site] section of the CamCOPS config file.

class camcops_server.cc_modules.cc_constants.CssClass[source]

CSS names.

Values should match e.g. camcops_server/templates/css/css_base.mako.

class camcops_server.cc_modules.cc_constants.DateFormat[source]

Assorted date/time formats.

class camcops_server.cc_modules.cc_constants.DockerConstants[source]

Constants for the Docker environment.

class camcops_server.cc_modules.cc_constants.FileType[source]

Used to represent output formats and their file extensions.

class camcops_server.cc_modules.cc_constants.MatplotlibConstants[source]

Constants used by matplotlib

class camcops_server.cc_modules.cc_constants.PV[source]

Collections of permitted values.

class camcops_server.cc_modules.cc_constants.PlotDefaults[source]

Defaults used with matplotlib plotting.

class camcops_server.cc_modules.cc_constants.StandardPorts[source]

Standard TCP port numbers.