#NEWLINE# def entry( request , entry ) : #NEWLINE# #INDENT# 'View a single entry.\n    \n    entry is the entry id.\n    ' #NEWLINE# if request . session . get ( 'nickname' , None ) : #NEWLINE# #INDENT# f = friendfeed . FriendFeed ( request . session [ 'nickname' ] , request . session [ 'key' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# f = friendfeed . FriendFeed ( ) #NEWLINE# #UNINDENT# data = f . fetch_entry ( request ) #NEWLINE# if ( 'errorCode' in data ) : #NEWLINE# #INDENT# return error ( request , data ) #NEWLINE# #UNINDENT# extra_context = { #NEWLINE# #INDENT# 'entries' : data [ 'entries' ] , #NEWLINE# 'permalink' : True , #NEWLINE# 'title' : data [ 'entries' ] [ 0 ] [ 'title' ] , #NEWLINE# #UNINDENT# } #NEWLINE# return render_to_response ( 'entry.html' , extra_context , context_instance = RequestContext ( request ) )