#NEWLINE# @ memoized #NEWLINE# def glanceclient( request , version = '1' ) : #NEWLINE# #INDENT# url = base . url_for ( request , 'image' ) #NEWLINE# insecure = getattr ( settings , 'OPENSTACK_SSL_NO_VERIFY' , False ) #NEWLINE# cacert = getattr ( settings , 'OPENSTACK_SSL_CACERT' , None ) #NEWLINE# return glance_client . Client ( request , url , token = request . user . token . id , insecure = insecure , cacert = cacert )