#NEWLINE# def redirect( self , url , **kwargs ) : #NEWLINE# #INDENT# '\n        For Facebook canvas pages we should use <fb:redirect /> instead of\n        a normal redirect.\n        ' #NEWLINE# if self . facebook . in_canvas : #NEWLINE# #INDENT# self . response . clear ( ) #NEWLINE# self . response . out . write ( ( '<fb:redirect url="%s" />' % ( kwargs , ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# super ( FacebookRequestHandler , self ) . redirect ( url , ** kwargs )