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

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