#NEWLINE# @ memoized . memoized_method #NEWLINE# def _get_object( self , * args , **kwargs ) : #NEWLINE# #INDENT# ikepolicy_id = self . kwargs [ 'ikepolicy_id' ] #NEWLINE# try : #NEWLINE# #INDENT# return api . vpn . ikepolicy_get ( self . request , ikepolicy_id ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# redirect = self . success_url #NEWLINE# msg = ( _ ( 'Unable to retrieve IKE Policy details. %s' ) % e ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = redirect )