Browse Source

redirecting from old orders list view to new url

php2python
Holger Frey 7 years ago
parent
commit
6c76c8d76e
  1. 10
      ordr2/views/orders.py

10
ordr2/views/orders.py

@ -38,6 +38,16 @@ def change_in_order_status(request, order, old):
request.registry.notify(event) request.registry.notify(event)
@view_config(
context='ordr2:resources.OrderList',
name='view',
permission='view'
)
def old_list_redirect(context, request):
''' redirect the old /orders/view/ path to /orders/ '''
return HTTPFound(context.url())
# oder list # oder list
@view_config( @view_config(