Add initial Shopfoo pattern feature
data models, import/export, web views etc.
This commit is contained in:
parent
a7656928f5
commit
852f9d4902
19 changed files with 515 additions and 1 deletions
42
rattail_demo/web/views/shopfoo/exports.py
Normal file
42
rattail_demo/web/views/shopfoo/exports.py
Normal file
|
@ -0,0 +1,42 @@
|
|||
# -*- 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)
|
Loading…
Add table
Add a link
Reference in a new issue