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

30 lines
642 B
Python
Raw Normal View History

2016-12-07 20:24:11 -06:00
# -*- 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'
2016-12-07 20:24:11 -06:00
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
2016-12-07 20:24:11 -06:00
def includeme(config):
CommonView.defaults(config)