Commit 5fc5ca04 authored by Jérome Perrin's avatar Jérome Perrin

testOOoImport py3

parent dc93a97d
from Products.ERP5OOo.OOoUtils import OOoParser
import string
import six
request = container.REQUEST
......@@ -32,7 +33,7 @@ def getSpreadsheet(file):
def cleanUid(uid):
"""method which clean an Uid"""
clean = uid.strip(string.ascii_letters+'_')
return long(clean)
return int(clean) if six.PY3 else long(clean)
# if listbox is empty, then we are in the first step
if listbox is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment