Commit d8adc7f6 authored by Jérome Perrin's avatar Jérome Perrin

s/range/xrange

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16202 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f894661f
...@@ -176,7 +176,7 @@ monthly_total = {}\n ...@@ -176,7 +176,7 @@ monthly_total = {}\n
for ((person_path, person_title), person_dict) in gathered_data:\n for ((person_path, person_title), person_dict) in gathered_data:\n
person_total = 0\n person_total = 0\n
print "<tr><td><a href=\\"%s\\">%s</a></td>" % (person_path, person_title)\n print "<tr><td><a href=\\"%s\\">%s</a></td>" % (person_path, person_title)\n
for month in range(12) :\n for month in xrange(12) :\n
print "<td>"\n print "<td>"\n
if person_dict.has_key(month) :\n if person_dict.has_key(month) :\n
person_total += person_dict[month]["salary"]\n person_total += person_dict[month]["salary"]\n
...@@ -194,7 +194,7 @@ for ((person_path, person_title), person_dict) in gathered_data:\n ...@@ -194,7 +194,7 @@ for ((person_path, person_title), person_dict) in gathered_data:\n
\n \n
print "<th class=\'total\'>%s</th>" % (N_(\'Total\'))\n print "<th class=\'total\'>%s</th>" % (N_(\'Total\'))\n
check_total = 0\n check_total = 0\n
for month in range(12):\n for month in xrange(12):\n
print "<td>"\n print "<td>"\n
if monthly_total.has_key(month):\n if monthly_total.has_key(month):\n
print monthly_total[month]\n print monthly_total[month]\n
...@@ -293,7 +293,7 @@ return printed\n ...@@ -293,7 +293,7 @@ return printed\n
<string>monthly_total</string> <string>monthly_total</string>
<string>person_dict</string> <string>person_dict</string>
<string>person_total</string> <string>person_total</string>
<string>range</string> <string>xrange</string>
<string>dup_ps</string> <string>dup_ps</string>
<string>check_total</string> <string>check_total</string>
</tuple> </tuple>
......
...@@ -80,7 +80,7 @@ payment_date = kw[\'payment_condition_payment_date\']\n ...@@ -80,7 +80,7 @@ payment_date = kw[\'payment_condition_payment_date\']\n
currency = kw[\'resource\']\n currency = kw[\'resource\']\n
\n \n
kw = {\'skip_redirect\': True}\n kw = {\'skip_redirect\': True}\n
for line_index in range(len(listbox)):\n for line_index in xrange(len(listbox)):\n
line = listbox[line_index]\n line = listbox[line_index]\n
\n \n
# Ignore employee without gross salary\n # Ignore employee without gross salary\n
...@@ -186,7 +186,7 @@ context.REQUEST.RESPONSE.redirect("%s?portal_status_message=%s" % ( context.getP ...@@ -186,7 +186,7 @@ context.REQUEST.RESPONSE.redirect("%s?portal_status_message=%s" % ( context.getP
<string>currency</string> <string>currency</string>
<string>True</string> <string>True</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>range</string> <string>xrange</string>
<string>len</string> <string>len</string>
<string>line_index</string> <string>line_index</string>
<string>line</string> <string>line</string>
......
...@@ -108,7 +108,7 @@ total_time = int(total_time + (DateTime() - current_start_date))\n ...@@ -108,7 +108,7 @@ total_time = int(total_time + (DateTime() - current_start_date))\n
\n \n
\n \n
# Get the legal resignment delay\n # Get the legal resignment delay\n
for i in range(len(legal_delays)):\n for i in xrange(len(legal_delays)):\n
if i < len(legal_delays)-1:\n if i < len(legal_delays)-1:\n
if legal_delays[i][\'days\'] >= total_time:\n if legal_delays[i][\'days\'] >= total_time:\n
return legal_delays[i][\'delay\']\n return legal_delays[i][\'delay\']\n
...@@ -176,7 +176,7 @@ for i in range(len(legal_delays)):\n ...@@ -176,7 +176,7 @@ for i in range(len(legal_delays)):\n
<string>TypeError</string> <string>TypeError</string>
<string>int</string> <string>int</string>
<string>DateTime</string> <string>DateTime</string>
<string>range</string> <string>xrange</string>
<string>len</string> <string>len</string>
<string>i</string> <string>i</string>
</tuple> </tuple>
......
157 158
\ 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