From 69316183f718a831523ccec75397f8aea39e570c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 15 Mar 2020 09:22:13 -0500 Subject: [PATCH] Remove time clock, schedule views those weren't very well supported, and that won't change anytime soon --- rattail_demo/web/menus.py | 28 ---------------------------- rattail_demo/web/views/__init__.py | 3 --- 2 files changed, 31 deletions(-) diff --git a/rattail_demo/web/menus.py b/rattail_demo/web/menus.py index ecaa89c..ff063f7 100644 --- a/rattail_demo/web/menus.py +++ b/rattail_demo/web/menus.py @@ -3,39 +3,11 @@ Web Menus """ -from __future__ import unicode_literals, absolute_import - def simple_menus(request): url = request.route_url menus = [ - { - 'title': "Time Clock", - 'type': 'menu', - 'items': [ - { - 'title': "Personal Schedule", - 'url': url('schedule.employee'), - 'perm': 'schedule.view', - }, - { - 'title': "Full Schedule", - 'url': url('schedule'), - 'perm': 'schedule.viewall', - }, - { - 'title': "Edit Schedule", - 'url': url('schedule.edit'), - 'perm': 'schedule.edit', - }, - { - 'title': "Raw Scheduled Shifts", - 'url': url('scheduledshifts'), - 'perm': 'scheduledshifts.list', - }, - ], - }, { 'title': "Products", 'type': 'menu', diff --git a/rattail_demo/web/views/__init__.py b/rattail_demo/web/views/__init__.py index 4828447..c23ec2d 100644 --- a/rattail_demo/web/views/__init__.py +++ b/rattail_demo/web/views/__init__.py @@ -3,8 +3,6 @@ Web views """ -from __future__ import unicode_literals, absolute_import - def includeme(config): @@ -28,7 +26,6 @@ def includeme(config): config.include('tailbone.views.reportcodes') config.include('tailbone.views.roles') config.include('rattail_demo.web.views.settings') - config.include('tailbone.views.shifts') config.include('tailbone.views.stores') config.include('tailbone.views.subdepartments') config.include('rattail_demo.web.views.tempmon')