Commit 7176b79a authored by Jérome Perrin's avatar Jérome Perrin

do not reinvent isupper

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34429 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8273f88d
......@@ -58,8 +58,7 @@
\n
object_type = context.getPortalType().replace(\' \', \'_\')\n
parent_type = context.getParentValue().getPortalType().replace(\' \', \'_\')\n
uppercase_list = [\'%c\' % x for x in range(ord(\'A\'), ord(\'Z\') + 1)]\n
prefix = \'\'.join([x for x in object_type if x in uppercase_list])\n
prefix = \'\'.join([x for x in object_type if x.isupper()])\n
\n
id_group = \'-\'.join((parent_type, object_type))\n
\n
......@@ -121,10 +120,7 @@ context.setReference(reference)\n
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>range</string>
<string>ord</string>
<string>x</string>
<string>uppercase_list</string>
<string>prefix</string>
<string>id_group</string>
<string>new_id</string>
......
712
\ No newline at end of file
713
\ 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