#NEWLINE# def entry_hide( request , entry ) : #NEWLINE# #INDENT# 'Hide an entry.\n\n    Authentication is required.\n\n    entry is the entry id to be hidden.\n    ' #NEWLINE# if ( not request . session . get ( 'nickname' , None ) ) : #NEWLINE# #INDENT# return HttpResponseRedirect ( reverse ( 'login' ) ) #NEWLINE# #UNINDENT# f = friendfeed . FriendFeed ( request . session [ 'nickname' ] , request . session [ 'key' ] ) #NEWLINE# data = f . hide_entry ( entry ) #NEWLINE# if ( 'errorCode' in data ) : #NEWLINE# #INDENT# return error ( request , data ) #NEWLINE# #UNINDENT# next = request . GET . get ( 'next' , '/' ) #NEWLINE# args = { #NEWLINE# #INDENT# 'message' : 'hidden' , #NEWLINE# 'entry' : entry , #NEWLINE# #UNINDENT# } #NEWLINE# next += ( '?%s#%s' % ( urllib . urlencode ( args ) , entry ) ) #NEWLINE# return HttpResponseRedirect ( next )