rattail-demo/rattail_demo/web/views/common.py
2016-12-11 19:42:26 -06:00

30 lines
642 B
Python

# -*- coding: utf-8 -*-
"""
Common views
"""
from __future__ import unicode_literals, absolute_import
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 rattail_tempmon
packages = super(CommonView, self).get_packages()
packages['rattail-tempmon'] = rattail_tempmon.__version__
for key in packages:
packages[key] = packages[key] + '+dev'
return packages
def includeme(config):
CommonView.defaults(config)