source: rattail-demo/rattail_demo/web/views/common.py @ 5c3a959

Last change on this file since 5c3a959 was 5c3a959, checked in by Lance Edgar <ledgar@…>, 13 months ago

Remove CORE-POS web views logic

all the views are still visible in our app, but the view logic belongs in
tailbone-corepos now

  • Property mode set to 100644
File size: 932 bytes
Line 
1# -*- coding: utf-8 -*-
2"""
3Common views
4"""
5
6from __future__ import unicode_literals, absolute_import
7
8from tailbone.views import common as base
9
10import rattail_demo
11
12
13class CommonView(base.CommonView):
14
15    project_title = "Rattail Demo"
16    project_version = rattail_demo.__version__ + '+dev'
17
18    def get_packages(self):
19        import corepos._version
20        import rattail_corepos
21        import rattail_tempmon
22        import tailbone_corepos
23
24        packages = super(CommonView, self).get_packages()
25        packages['pyCOREPOS'] = corepos._version.__version__
26        packages['rattail-corepos'] = rattail_corepos.__version__
27        packages['rattail-tempmon'] = rattail_tempmon.__version__
28        packages['tailbone_corepos'] = tailbone_corepos.__version__
29        for key in packages:
30            packages[key] = packages[key] + '+dev'
31        return packages
32
33
34def includeme(config):
35    CommonView.defaults(config)
Note: See TracBrowser for help on using the repository browser.