rattail-demo/rattail_demo/web/views/common.py
Lance Edgar 9d9bc58a99 Add initial mobile template support
Also add rattail-tempmon to list of packages on 'about' page
2016-12-11 01:40:41 -06:00

28 lines
553 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__
def get_packages(self):
import rattail_tempmon
packages = super(CommonView, self).get_packages()
packages['rattail-tempmon'] = rattail_tempmon.__version__
return packages
def includeme(config):
CommonView.defaults(config)