@handle_response_format
@treeio_login_required
def weblink_view(request, weblink_id, response_format='html'):
 link = get_object_or_404(WebLink, pk=weblink_id)
 if (not request.user.profile.has_permission(link)):
  return user_denied(request, message="You don't have access to this Web Link")
 context = _get_default_context(request)
 context.update({'link': link})
 return render_to_response('documents/weblink_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def weblink_view ( request , weblink_id , response_format = 'html' ) : link = get_object_or_404 ( WebLink , pk = weblink_id ) if ( not request . user . profile . has_permission ( link ) ) : return user_denied ( request , message = "You don't have access to this Web Link" ) context = _get_default_context ( request ) context . update ( { 'link' : link } ) return render_to_response ( 'documents/weblink_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
weblink page .