Merge lp:~unifield-team/unifield-server/us-1840 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4023
Proposed branch: lp:~unifield-team/unifield-server/us-1840
Merge into: lp:unifield-server
Diff against target: 16 lines (+2/-1)
1 file modified
bin/addons/account_mcdb/report/mcdb_result.py (+2/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1840
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+309823@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/account_mcdb/report/mcdb_result.py'
2--- bin/addons/account_mcdb/report/mcdb_result.py 2016-05-26 10:10:34 +0000
3+++ bin/addons/account_mcdb/report/mcdb_result.py 2016-11-02 09:24:43 +0000
4@@ -101,11 +101,12 @@
5 out = outfile.read()
6 outfile.close()
7 if len(ids) > limit_tozip:
8- null, tmpzipname = tempfile.mkstemp()
9+ fd, tmpzipname = tempfile.mkstemp()
10 zf = zipfile.ZipFile(tmpzipname, 'w')
11 zf.writestr('export_result.csv', out)
12 zf.close()
13 out = file(tmpzipname, 'rb').read()
14+ os.close(fd)
15 os.unlink(tmpzipname)
16 return (out, 'zip')
17

Subscribers

People subscribed via source and target branches

to all changes: