#NEWLINE# def __init__( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# super ( AddIPSecPolicyAction , self ) . __init__ ( request , * args , ** kwargs ) #NEWLINE# auth_algorithm_choices = [ ( 'sha1' , 'sha1' ) ] #NEWLINE# self . fields [ 'auth_algorithm' ] . choices = auth_algorithm_choices #NEWLINE# self . fields [ 'auth_algorithm' ] . widget . attrs [ 'readonly' ] = True #NEWLINE# encapsulation_mode_choices = [ ( 'tunnel' , 'tunnel' ) , ( 'transport' , 'transport' ) ] #NEWLINE# self . fields [ 'encapsulation_mode' ] . choices = encapsulation_mode_choices #NEWLINE# encryption_algorithm_choices = [ ( '3des' , '3des' ) , ( 'aes-128' , 'aes-128' ) , ( 'aes-192' , 'aes-192' ) , ( 'aes-256' , 'aes-256' ) ] #NEWLINE# self . fields [ 'encryption_algorithm' ] . choices = encryption_algorithm_choices #NEWLINE# self . fields [ 'encryption_algorithm' ] . initial = 'aes-128' #NEWLINE# lifetime_units_choices = [ ( 'seconds' , 'seconds' ) ] #NEWLINE# self . fields [ 'lifetime_units' ] . choices = lifetime_units_choices #NEWLINE# self . fields [ 'lifetime_units' ] . widget . attrs [ 'readonly' ] = True #NEWLINE# pfs_choices = [ ( 'group2' , 'group2' ) , ( 'group5' , 'group5' ) , ( 'group14' , 'group14' ) ] #NEWLINE# self . fields [ 'pfs' ] . choices = pfs_choices #NEWLINE# self . fields [ 'pfs' ] . initial = 'group5' #NEWLINE# transform_protocol_choices = [ ( 'esp' , 'esp' ) , ( 'ah' , 'ah' ) , ( 'ah-esp' , 'ah-esp' ) ] #NEWLINE# self . fields [ 'transform_protocol' ] . choices = transform_protocol_choices