Replace pathname separator in report name by '_' for issue1104

This commit is contained in:
Cédric Krier committed 2009-07-15 16:43:37 +02:00
1 parent 780db60731
commit ab4b448427
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ class Action(object):
if not print_p and direct_print:
print_p = True
dtemp = tempfile.mkdtemp(prefix='tryton_')
fp_name = os.path.join(dtemp, name + '.' + type)
fp_name = os.path.join(dtemp, name.replace(os.sep, '_') + '.' + type)
file_d = open(fp_name, 'w')
file_d.write(base64.decodestring(data))
file_d.close()