[IMP] Saving Attchments to the windows %temp%

bzr revid: jam@tinyerp.com-20101007100233-zyekdmnma9ftetab
This commit is contained in:
Jigar Amin
2010-10-07 15:32:33 +05:30
parent 034d7f3689
commit 95db658a2b
@@ -261,7 +261,7 @@ class XMLRpcConn(object):
attachments = mail.Attachments
result = {}
conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object')
att_folder_path = os.path.abspath(os.path.dirname(__file__)+"\\dialogs\\resources\\mails\\attachments\\")
att_folder_path = os.path.abspath(os.path.dirname("%temp%\\"))
if not os.path.exists(att_folder_path):
os.makedirs(att_folder_path)
for rec in recs: #[('res.partner', 3, 'Agrolait')]