@handle_response_format
@treeio_login_required
def widget_contact_me(request, response_format='html'):
 contact = request.user.profile.get_contact()
 if (not request.user.profile.has_permission(contact)):
  return user_denied(request, message="You don't have access to this Contact")
 types = Object.filter_by_request(request, ContactType.objects.order_by('name'))
 if contact:
  return render_to_response('identities/widgets/contact_me', {'contact': contact, 'types': types}, context_instance=RequestContext(request), response_format=response_format)
 else:
  return render_to_response('identities/widgets/contact_me_missing', {'types': types}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def widget_contact_me ( request , response_format = 'html' ) : contact = request . user . profile . get_contact ( ) if ( not request . user . profile . has_permission ( contact ) ) : return user_denied ( request , message = "You don't have access to this Contact" ) types = Object . filter_by_request ( request , ContactType . objects . order_by ( 'name' ) ) if contact : return render_to_response ( 'identities/widgets/contact_me' , { 'contact' : contact , 'types' : types } , context_instance = RequestContext ( request ) , response_format = response_format ) else : return render_to_response ( 'identities/widgets/contact_me_missing' , { 'types' : types } , context_instance = RequestContext ( request ) , response_format = response_format )
my contact card .