Commit e837711b authored by Fabien Morin's avatar Fabien Morin

correct a mistake

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24262 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d208140b
...@@ -60,7 +60,6 @@ This script remove accents and spaces and other things from the text to generate ...@@ -60,7 +60,6 @@ This script remove accents and spaces and other things from the text to generate
\'\'\'\n \'\'\'\n
\n \n
inc = 1\n inc = 1\n
new_login = login\n
\n \n
# XXX here it should be possible to use a regular expression\n # XXX here it should be possible to use a regular expression\n
login = text.lower()\n login = text.lower()\n
...@@ -70,6 +69,8 @@ login = login.replace(\'\xc3\xa8\', \'e\')\n ...@@ -70,6 +69,8 @@ login = login.replace(\'\xc3\xa8\', \'e\')\n
login = login.replace(\'\xc3\xa0\', \'a\')\n login = login.replace(\'\xc3\xa0\', \'a\')\n
login = login.replace(\'\xc3\xa7\', \'c\')\n login = login.replace(\'\xc3\xa7\', \'c\')\n
\n \n
new_login = login\n
\n
# search if the login already exists\n # search if the login already exists\n
result = context.portal_catalog(reference=login)\n result = context.portal_catalog(reference=login)\n
\n \n
...@@ -124,9 +125,9 @@ return new_login\n ...@@ -124,9 +125,9 @@ return new_login\n
<tuple> <tuple>
<string>text</string> <string>text</string>
<string>inc</string> <string>inc</string>
<string>_getattr_</string>
<string>login</string> <string>login</string>
<string>new_login</string> <string>new_login</string>
<string>_getattr_</string>
<string>context</string> <string>context</string>
<string>result</string> <string>result</string>
<string>len</string> <string>len</string>
......
411 412
\ No newline at end of file \ No newline at end of file
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