24
24
from xml.dom.minidom import Document
26
26
from tools.translate import _
28
29
class delete_payment_profile(osv.osv_memory):
29
30
_name = 'delete.payment.profile'
30
31
_description = 'Delete Payment Profile'
32
33
def request_to_server(self, Request_string, url, url_path):
33
''' Sends a POST request to url and returns the response from the server'''
34
''' Sends a POST request to url and returns the response from the server'''
35
conn = httplib.HTTPSConnection(url)
36
conn.putrequest('POST', url_path)
37
conn.putheader('content-type', 'text/xml')
38
conn.putheader('content-length', len(Request_string))
40
conn.send(Request_string)
41
response = conn.getresponse()
42
create_CustomerProfile_response_xml = response.read()
43
return create_CustomerProfile_response_xml
36
conn = httplib.HTTPSConnection(url)
37
conn.putrequest('POST', url_path)
38
conn.putheader('content-type', 'text/xml')
39
conn.putheader('content-length', len(Request_string))
41
conn.send(Request_string)
42
response = conn.getresponse()
43
create_CustomerProfile_response_xml = response.read()
44
return create_CustomerProfile_response_xml
45
46
def search_dic(self, dic, key):
46
47
''' Returns the parent dictionary containing key None on Faliure'''
184
'payment_profile_id':fields.many2one('cust.payment.profile', 'Payment Profile', required=True),
185
'payment_profile_id':fields.many2one('cust.payment.profile', 'Payment Profile', required=True),
187
188
'payment_profile_id':_get_profile_id