[FIX] database restore dont prepend a space before the tempfile
authorAntony Lesuisse <al@openerp.com>
Tue, 14 Feb 2012 19:30:30 +0000 (20:30 +0100)
committerAntony Lesuisse <al@openerp.com>
Tue, 14 Feb 2012 19:30:30 +0000 (20:30 +0100)
lp bug: https://launchpad.net/bugs/859720 fixed

bzr revid: al@openerp.com-20120214193030-uhqyuo70l527ypsn

openerp/service/web_services.py

index 3a9ba89..a7136e2 100644 (file)
@@ -259,7 +259,7 @@ class db(netsvc.ExportService):
                 tmpfile = (os.environ['TMP'] or 'C:\\') + os.tmpnam()
                 file(tmpfile, 'wb').write(buf)
                 args2=list(args2)
-                args2.append(' ' + tmpfile)
+                args2.append(tmpfile)
                 args2=tuple(args2)
             stdin, stdout = tools.exec_pg_command_pipe(*args2)
             if not os.name == "nt":