Capitalize the name Messkit

sounds more official that way..?
This commit is contained in:
Lance Edgar 2022-03-03 21:06:49 -06:00
parent 7058ebf75e
commit ec84808332
14 changed files with 86 additions and 86 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
messkit.egg-info/ Messkit.egg-info/

View file

@ -1,5 +1,5 @@
messkit Messkit
======= ========
Hopefully some kind of generic data manipulation thingy, we'll see... Hopefully some kind of generic data manipulation thingy, we'll see...

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit Messkit
""" """
from ._version import __version__ from ._version import __version__

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit app settings Messkit app settings
""" """
# bring in some common settings from rattail # bring in some common settings from rattail

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit commands Messkit commands
""" """
import os import os
@ -41,7 +41,7 @@ from messkit import __version__
def main(*args): def main(*args):
""" """
Main entry point for messkit command system Main entry point for Messkit command system
""" """
args = list(args or sys.argv[1:]) args = list(args or sys.argv[1:])
cmd = Command() cmd = Command()
@ -50,24 +50,24 @@ def main(*args):
class Command(commands.Command): class Command(commands.Command):
""" """
Main command for messkit Main command for Messkit
""" """
name = 'messkit' name = 'messkit'
version = __version__ version = __version__
description = "messkit (Generic Data App)" description = "Messkit (Generic Data App)"
long_description = '' long_description = ''
class Install(commands.Subcommand): class Install(commands.Subcommand):
""" """
Install a messkit app Install a Messkit app
""" """
name = 'install' name = 'install'
description = __doc__.strip() description = __doc__.strip()
def run(self, args): def run(self, args):
rprint("\n\t[blue]Welcome to messkit![/blue]") rprint("\n\t[blue]Welcome to Messkit![/blue]")
rprint("\n\tThis tool will install and configure a new app.") rprint("\n\tThis tool will install and configure a new app.")
rprint("\n\t[italic]NB. You should already have created a new database in PostgreSQL.[/italic]") rprint("\n\t[italic]NB. You should already have created a new database in PostgreSQL.[/italic]")
@ -107,10 +107,10 @@ class Install(commands.Subcommand):
# make config files # make config files
context = { context = {
'app_title': "messkit", 'app_title': "Messkit",
'appdir': appdir, 'appdir': appdir,
'db_url': dburl, 'db_url': dburl,
'pyramid_egg': 'messkit', 'pyramid_egg': 'Messkit',
'beaker_key': 'messkit', 'beaker_key': 'messkit',
} }
rattail_conf = self.app.make_config_file( rattail_conf = self.app.make_config_file(

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
Config extension for messkit Config extension for Messkit
""" """
import os import os
@ -32,14 +32,14 @@ from rattail.config import ConfigExtension
class MesskitConfig(ConfigExtension): class MesskitConfig(ConfigExtension):
""" """
Rattail config extension for messkit Rattail config extension for Messkit
""" """
key = 'messkit' key = 'messkit'
def configure(self, config): def configure(self, config):
# set some default config values # set some default config values
config.setdefault('rattail', 'app_title', "messkit") config.setdefault('rattail', 'app_title', "Messkit")
config.setdefault('tailbone', 'menus', 'messkit.web.menus') config.setdefault('tailbone', 'menus', 'messkit.web.menus')
config.setdefault('rattail', 'model', 'messkit.db.model') config.setdefault('rattail', 'model', 'messkit.db.model')
config.setdefault('rattail', 'settings', 'messkit.appsettings') config.setdefault('rattail', 'settings', 'messkit.appsettings')

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit Data Model Messkit Data Model
""" """
from rattail.db.model import * from rattail.db.model import *

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit web app Messkit web app
""" """
from tailbone import app from tailbone import app
@ -31,7 +31,7 @@ def main(global_config, **settings):
""" """
This function returns a Pyramid WSGI application. This function returns a Pyramid WSGI application.
""" """
# prefer messkit templates over Tailbone # prefer Messkit templates over Tailbone
settings.setdefault('mako.directories', ['messkit.web:templates', settings.setdefault('mako.directories', ['messkit.web:templates',
'tailbone:templates',]) 'tailbone:templates',])
@ -42,7 +42,7 @@ def main(global_config, **settings):
rattail_config = app.make_rattail_config(settings) rattail_config = app.make_rattail_config(settings)
pyramid_config = app.make_pyramid_config(settings) pyramid_config = app.make_pyramid_config(settings)
# bring in the rest of messkit # bring in the rest of Messkit
pyramid_config.include('messkit.web.static') pyramid_config.include('messkit.web.static')
pyramid_config.include('messkit.web.subscribers') pyramid_config.include('messkit.web.subscribers')
pyramid_config.include('messkit.web.views') pyramid_config.include('messkit.web.views')

View file

@ -1,23 +1,23 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
@ -124,7 +124,7 @@ def simple_menus(request):
'perm': 'tables.list', 'perm': 'tables.list',
}, },
{ {
'title': "messkit Upgrades", 'title': "Messkit Upgrades",
'url': url('upgrades'), 'url': url('upgrades'),
'perm': 'upgrades.list', 'perm': 'upgrades.list',
}, },

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit static assets Messkit static assets
""" """

View file

@ -1,23 +1,23 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit web views Messkit web views
""" """

View file

@ -1,23 +1,23 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
@ -31,7 +31,7 @@ import messkit
class CommonView(base.CommonView): class CommonView(base.CommonView):
project_title = "messkit" project_title = "Messkit"
project_version = messkit.__version__ + '+dev' project_version = messkit.__version__ + '+dev'

View file

@ -1,27 +1,27 @@
# -*- coding: utf-8; -*- # -*- coding: utf-8; -*-
###################################################################### ######################################################################
# #
# messkit -- Generic-ish Data Utility App # Messkit -- Generic-ish Data Utility App
# Copyright © 2022 Lance Edgar # Copyright © 2022 Lance Edgar
# #
# This file is part of messkit. # This file is part of Messkit.
# #
# messkit is free software: you can redistribute it and/or modify it # Messkit is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# messkit is distributed in the hope that it will be useful, but # Messkit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details. # General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with messkit. If not, see <http://www.gnu.org/licenses/>. # along with Messkit. If not, see <http://www.gnu.org/licenses/>.
# #
###################################################################### ######################################################################
""" """
messkit setup script Messkit setup script
""" """
import os import os
@ -73,7 +73,7 @@ requires = [
setup( setup(
name = "messkit", name = "Messkit",
version = __version__, version = __version__,
author = "Lance Edgar", author = "Lance Edgar",
author_email = "lance@edbob.org", author_email = "lance@edbob.org",