@treeio_login_required
@handle_response_format
def tax_view(request, tax_id, response_format='html'):
 tax = get_object_or_404(Tax, pk=tax_id)
 if ((not request.user.profile.has_permission(tax, mode='r')) and (not request.user.profile.is_admin('treeio_finance'))):
  return user_denied(request, "You don't have access to this Tax", response_format)
 return render_to_response('finance/tax_view', {'tax': tax}, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format def tax_view ( request , tax_id , response_format = 'html' ) : tax = get_object_or_404 ( Tax , pk = tax_id ) if ( ( not request . user . profile . has_permission ( tax , mode = 'r' ) ) and ( not request . user . profile . is_admin ( 'treeio_finance' ) ) ) : return user_denied ( request , "You don't have access to this Tax" , response_format ) return render_to_response ( 'finance/tax_view' , { 'tax' : tax } , context_instance = RequestContext ( request ) , response_format = response_format )
view a tax .