rattail-demo/rattail_demo/web/views/shopfoo/exports.py
Lance Edgar 852f9d4902 Add initial Shopfoo pattern feature
data models, import/export, web views etc.
2020-08-19 22:21:00 -05:00

43 lines
840 B
Python

# -*- coding: utf-8 -*-
"""
Views for Shopfoo product exports
"""
from rattail_demo.db import model
from tailbone.views.exports import ExportMasterView
class ShopfooProductExportView(ExportMasterView):
"""
Master view for Shopfoo product exports.
"""
model_class = model.ShopfooProductExport
route_prefix = 'shopfoo.product_exports'
url_prefix = '/shopfoo/exports/product'
downloadable = True
editable = True
delete_export_files = True
grid_columns = [
'id',
'created',
'created_by',
'filename',
'record_count',
'uploaded',
]
form_fields = [
'id',
'created',
'created_by',
'record_count',
'filename',
'uploaded',
]
def includeme(config):
ShopfooProductExportView.defaults(config)