rattail-demo/rattail_demo/web/views/common.py

34 lines
857 B
Python
Raw Normal View History

# -*- coding: utf-8; -*-
2016-12-07 20:24:11 -06:00
"""
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'
2016-12-07 20:24:11 -06:00
def get_packages(self):
import corepos
import rattail_corepos
import rattail_tempmon
import tailbone_corepos
packages = super(CommonView, self).get_packages()
packages['pyCOREPOS'] = corepos.__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
2016-12-07 20:24:11 -06:00
def includeme(config):
CommonView.defaults(config)