Changeset 1091 in main


Ignore:
Timestamp:
05/10/12 13:42:40 (7 years ago)
Author:
pcosquer
Message:

add missing @handle_errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/oerp/views.py

    r1085 r1091  
    11from django.http import HttpResponseRedirect 
    22 
    3 from openPLM.plmapp.base_views import get_generic_data 
     3from openPLM.plmapp.base_views import get_generic_data, handle_errors 
    44from openPLM.plmapp.views.main import r2r 
    55from openPLM.plmapp.forms import ConfirmPasswordForm 
     
    88from openPLM.oerp import erp 
    99 
     10@handle_errors 
    1011def erp_summary(request, obj_type, obj_ref, obj_revi): 
    1112    obj, ctx = get_generic_data(request, obj_type, obj_ref, obj_revi) 
     
    2425        return r2r("erp_published.html", ctx, request) 
    2526 
     27@handle_errors 
    2628def erp_publish(request, obj, ctx): 
    2729    if not obj.group.user_set.filter(id=request.user.id).exists(): 
Note: See TracChangeset for help on using the changeset viewer.