rattail-demo/rattail_demo/web/views/common.py
Lance Edgar 5c3a95915b Remove CORE-POS web views logic
all the views are still visible in our app, but the view logic belongs in
tailbone-corepos now
2019-07-09 17:34:03 -05:00

36 lines
932 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 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)