rattail-demo/rattail_demo/web/views/common.py
Lance Edgar 92517605d8 Tweak project name for tailbone-corepos
i.e. for About page
2020-03-15 09:21:37 -05:00

34 lines
875 B
Python

# -*- coding: utf-8; -*-
"""
Common views
"""
from tailbone.views import common as base
import rattail_demo
class CommonView(base.CommonView):
project_title = "Rattail Demo"
project_version = rattail_demo.__version__ + '+dev'
def get_packages(self):
import corepos._version
import rattail_corepos
import rattail_tempmon
import tailbone_corepos
packages = super(CommonView, self).get_packages()
packages['pyCOREPOS'] = corepos._version.__version__
packages['rattail-corepos'] = rattail_corepos.__version__
packages['rattail-tempmon'] = rattail_tempmon.__version__
packages['tailbone-corepos'] = tailbone_corepos.__version__
for key in packages:
packages[key] = packages[key] + '+dev'
return packages
def includeme(config):
CommonView.defaults(config)