From 4fd89eb434663b851fbba896d94bb5c6381e6a34 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 6 Mar 2022 22:09:32 -0600 Subject: [PATCH] Add `enum` module, include whatever poser says --- messkit/config.py | 1 + messkit/enum.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 messkit/enum.py diff --git a/messkit/config.py b/messkit/config.py index a6f085f..2bd5e73 100644 --- a/messkit/config.py +++ b/messkit/config.py @@ -41,6 +41,7 @@ class MesskitConfig(ConfigExtension): # set some default config values config.setdefault('rattail', 'app_title', "Messkit") config.setdefault('tailbone', 'menus', 'messkit.web.menus') + config.setdefault('rattail', 'enum', 'messkit.enum') config.setdefault('rattail', 'model', 'messkit.db.model') config.setdefault('rattail', 'settings', 'messkit.appsettings') config.setdefault('rattail.mail', 'emails', 'messkit.emails') diff --git a/messkit/enum.py b/messkit/enum.py new file mode 100644 index 0000000..c25b5ca --- /dev/null +++ b/messkit/enum.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8; -*- +###################################################################### +# +# Messkit -- Generic-ish Data Utility App +# Copyright © 2022 Lance Edgar +# +# This file is part of Messkit. +# +# Messkit 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. +# +# Messkit 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 Messkit. If not, see . +# +###################################################################### +""" +Messkit Enumerations +""" + +from rattail.enum import * + +try: + from poser.enum import * +except ImportError: + pass