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"
|
2016-12-11 19:42:26 -06:00
|
|
|
project_version = rattail_demo.__version__ + '+dev'
|
2016-12-07 20:24:11 -06:00
|
|
|
|
2016-12-11 01:40:41 -06:00
|
|
|
def get_packages(self):
|
2019-07-09 17:34:03 -05:00
|
|
|
import corepos._version
|
|
|
|
import rattail_corepos
|
2016-12-11 01:40:41 -06:00
|
|
|
import rattail_tempmon
|
2019-07-09 17:34:03 -05:00
|
|
|
import tailbone_corepos
|
2016-12-11 01:40:41 -06:00
|
|
|
|
|
|
|
packages = super(CommonView, self).get_packages()
|
2019-07-09 17:34:03 -05:00
|
|
|
packages['pyCOREPOS'] = corepos._version.__version__
|
|
|
|
packages['rattail-corepos'] = rattail_corepos.__version__
|
2016-12-11 01:40:41 -06:00
|
|
|
packages['rattail-tempmon'] = rattail_tempmon.__version__
|
2019-07-09 17:34:03 -05:00
|
|
|
packages['tailbone_corepos'] = tailbone_corepos.__version__
|
2016-12-11 19:42:26 -06:00
|
|
|
for key in packages:
|
|
|
|
packages[key] = packages[key] + '+dev'
|
2016-12-11 01:40:41 -06:00
|
|
|
return packages
|
|
|
|
|
2016-12-07 20:24:11 -06:00
|
|
|
|
|
|
|
def includeme(config):
|
|
|
|
CommonView.defaults(config)
|