mewlo.mpacks.core.constants.mconstants module

mconst.py This module contains constants used accross modules. It provides a central place for constants so that they are easier to locate.

It’s written as a class just to make the syntax of manipulating values a little cleaner.

class mewlo.mpacks.core.constants.mconstants.MewloConstants[source]

Bases: object

DEF_EVENT_TYPE_PYTHONLOGGING_MAP = {'INFO': 20, 'CRITICAL': 40, 'EXCEPTION': 40, 'FAILURE': 40, 'WARNING': 30, 'ERROR': 40, 'DEBUG': 10}
DEF_EVENT_TYPE_PYTHONLOGGING_REVERSEMAP = {40: 'ERROR', 10: 'DEBUG', 20: 'INFO', 30: 'WARNING'}
DEF_EVENT_TYPE_critical = 'CRITICAL'
DEF_EVENT_TYPE_debug = 'DEBUG'
DEF_EVENT_TYPE_error = 'ERROR'
DEF_EVENT_TYPE_exception = 'EXCEPTION'
DEF_EVENT_TYPE_failure = 'FAILURE'
DEF_EVENT_TYPE_info = 'INFO'
DEF_EVENT_TYPE_warning = 'WARNING'
DEF_EVENT_fieldname_safelist = ['type', 'msg', 'exp', 'request', 'traceback', 'statuscode', 'loc', 'source', 'timestamp']
DEF_FORM_GenericErrorKey = ''
DEF_GROUPNAME_visitor = 'group.visitor'
DEF_LOG_SqlAlchemyLoggerName = 'sqlalchemy'
DEF_LOG_TARGET_filemode_default = 'a'
DEF_NAV_cache_keyname = 'navnodecache'
DEF_PACK_INFOFIELD_codeclass = 'codeclass'
DEF_PACK_INFOFIELD_codefile = 'codefile'
DEF_PACK_INFOFIELD_isrequired = 'isrequired'
DEF_PACK_INFOFIELD_requiredpacks = 'packs'
DEF_PACK_INFOFIELD_requires = 'requires'
DEF_PACK_INFOFIELD_uniqueid = 'uniqueid'
DEF_PACK_INFOFIELD_url_download = 'url.download'
DEF_PACK_INFOFIELD_url_version = 'url.version'
DEF_PACK_INFOFIELD_version = 'version'
DEF_PACK_INFOFIELD_versioncritical = 'versioncritical'
DEF_PACK_INFOFIELD_versiondate = 'versiondate'
DEF_PACK_filepatternsuffix = 'mpack'
DEF_PACK_subdirlist = ['mpacks']
DEF_ROLENAME_groupmembership = 'group_membership'
DEF_ROLENAME_groupownership = 'group_ownership'
DEF_SETTINGNAME_controllerroot = 'controllerroot'
DEF_SETTINGNAME_dbfilepath = 'dbfilepath'
DEF_SETTINGNAME_default_logfilename = 'logfilename'
DEF_SETTINGNAME_flag_importsetuptoolspacks = 'flag_importsetuptoolspacks'
DEF_SETTINGNAME_isenabled = 'isenabled'
DEF_SETTINGNAME_isonline = 'isonline'
DEF_SETTINGNAME_logfilepath = 'logfilepath'
DEF_SETTINGNAME_mewlofilepath = 'mewlofilepath'
DEF_SETTINGNAME_offline_allowadmin = 'offline_allowadmin'
DEF_SETTINGNAME_offline_message = 'offline_message'
DEF_SETTINGNAME_offline_mode = 'offline_mode'
DEF_SETTINGNAME_pkgdirimps_sitempacks = 'pkgdirimps_sitempacks'
DEF_SETTINGNAME_replacemirrorpath = 'mirrorpath'
DEF_SETTINGNAME_sitefilepath = 'sitefilepath'
DEF_SETTINGNAME_sitename = 'sitename'
DEF_SETTINGNAME_siteurl_absolute = 'siteurl_absolute'
DEF_SETTINGNAME_siteurl_relative = 'siteurl_relative'
DEF_SETTINGNAME_siteview_filepath = 'siteviewpath'
DEF_SETTINGSEC_aliases = 'aliases'
DEF_SETTINGSEC_asset_mounts = 'asset_mounts'
DEF_SETTINGSEC_config = 'config'
DEF_SETTINGSEC_database = 'database'
DEF_SETTINGSEC_mail = 'mail'
DEF_SETTINGSEC_packs = 'packs'
DEF_SETTINGSEC_siteaddon_account = 'siteaddon_account'
DEF_SETTINGVAL_default_logfilename_defaultvalue = '${logfilepath}/mewlo.log'
DEF_SETTINGVAL_default_pack_settings = {'enabled': False}
DEF_SETTINGVAL_flag_importsetuptoolspacks = True
DEF_SITESTATE_INITIALIZE_END = 'initialized'
DEF_SITESTATE_INITIALIZE_START = 'initializing'
DEF_SITESTATE_SHUTDOWN_END = 'shutdown'
DEF_SITESTATE_SHUTDOWN_START = 'shuttingdown'
DEF_SITESTATE_STARTUP_END = 'started'
DEF_SITESTATE_STARTUP_START = 'starting'
DEF_STARTUPSTAGE_LISTALL = ['sitepreinit', 'earlycore', 'latecore', 'premodels', 'sitebuildmodels', 'postmodels', 'addonstuff', 'assetstuff', 'routeend', 'routeend', 'final', 'finalreport', 'sitepostinit']
DEF_STARTUPSTAGE_addonstuff = 'addonstuff'
DEF_STARTUPSTAGE_assetstuff = 'assetstuff'
DEF_STARTUPSTAGE_earlycore = 'earlycore'
DEF_STARTUPSTAGE_final = 'final'
DEF_STARTUPSTAGE_finalreport = 'finalreport'
DEF_STARTUPSTAGE_latecore = 'latecore'
DEF_STARTUPSTAGE_postmodels = 'postmodels'
DEF_STARTUPSTAGE_premodels = 'premodels'
DEF_STARTUPSTAGE_routeend = 'routeend'
DEF_STARTUPSTAGE_routestart = 'routeend'
DEF_STARTUPSTAGE_sitebuildmodels = 'sitebuildmodels'
DEF_STARTUPSTAGE_sitepostinit = 'sitepostinit'
DEF_STARTUPSTAGE_sitepreinit = 'sitepreinit'
DEF_VFTYPE_pre_user_verification = 'VFTYPE_pre_user_verification'
DEF_VFTYPE_user_passwordreset = 'VFTYPE_user_passwordreset'
DEF_VFTYPE_userfield_verification = 'VFTYPE_userfield_verification'