Commit 8db2af27 authored by Nicolas Delaby's avatar Nicolas Delaby

Fix method name and improve doc string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26260 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3838ba74
......@@ -265,10 +265,10 @@ def getPath(object_or_path, **kw):
return path.split('/')
return path
def int2letters(i):
def int2letter(i):
"""
Convert an integer to letters, to generate spreadsheet column id
A, B, C ..., Z, AA, AB, ..., AZ, BA, ..., ZZ, AAA ...
0=>A, 25=>Z, 26=>AA, 27=>AB, ...
"""
if i < 26:
return (chr(i + ord('A')))
......
......@@ -109,7 +109,7 @@ allow_module('Products.ERP5Type.Cache')
ModuleSecurityInfo('Products.ERP5Type.Utils').declarePublic(
'sortValueList', 'convertToUpperCase', 'UpperCase',
'convertToMixedCase', 'cartesianProduct', 'sleep', 'getCommonTimeZoneList',
'int2letters',)
'int2letter',)
allow_module('Products.ERP5Type.Message')
ModuleSecurityInfo('Products.ERP5Type.Message').declarePublic('translateString')
......
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