Commit 73b147a2 authored by Jérome Perrin's avatar Jérome Perrin

testOOoImport py3

parent 05b2ea75
from Products.ERP5OOo.OOoUtils import OOoParser from Products.ERP5OOo.OOoUtils import OOoParser
import string import string
import six
request = container.REQUEST request = container.REQUEST
...@@ -32,7 +33,7 @@ def getSpreadsheet(file): ...@@ -32,7 +33,7 @@ def getSpreadsheet(file):
def cleanUid(uid): def cleanUid(uid):
"""method which clean an Uid""" """method which clean an Uid"""
clean = uid.strip(string.ascii_letters+'_') 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 empty, then we are in the first step
if listbox is None: 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