#NEWLINE# def posts( request , mine = True , username = None ) : #NEWLINE# #INDENT# is_me = False #NEWLINE# if mine : #NEWLINE# #INDENT# the_user = request . user #NEWLINE# is_me = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# the_user = get_object_or_404 ( User , username = username ) #NEWLINE# if ( the_user == request . user ) : #NEWLINE# #INDENT# is_me = True #NEWLINE# #UNINDENT# #UNINDENT# the_researcher = request . user . get_profile ( ) #NEWLINE# post_updates = Update . objects . filter ( user = the_user ) #NEWLINE# return render_to_response ( 'dashboard/posts.html' , { #NEWLINE# #INDENT# 'the_user' : the_user , #NEWLINE# 'is_me' : is_me , #NEWLINE# 'post_updates' : post_updates , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )