parameters: (request)
return_statement: return my_render_to_response(request, 'yaksh/view_profile.html', context)
docstring: view moderators and users profile
docstring_summary: view moderators and users profile
docstring_tokens: view moderators and users profile
function: def view_profile(request):
      """ view moderators and users profile """
      user = request.user
      if is_moderator(user):
          template = 'manage.html'
      else:
          template = 'user.html'
      context = {'template': template, 'user': user}
      return my_render_to_response(request, 'yaksh/view_profile.html', context)
function_tokens: def view_profile ( request ) : user = request . user if is_moderator ( user ) : template = 'manage.html' else : template = 'user.html' context = { 'template' : template , 'user' : user } return my_render_to_response ( request , 'yaksh/view_profile.html' , context )