Commit 3e3abaea authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! py2/py3: Make Products code compatible with both python2 and python3.

parent 7382b7da
...@@ -8,4 +8,4 @@ else: ...@@ -8,4 +8,4 @@ else:
return u"javascript:SelectFile('%s?format=%s')" % ( return u"javascript:SelectFile('%s?format=%s')" % (
reference.replace("'", "\\'"), reference.replace("'", "\\'"),
context.getPortalObject().portal_preferences.getPreferredImageFormat(), context.getPortalObject().portal_preferences.getPreferredImageFormat(),
) )
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<table metal:define-macro="table" <table metal:define-macro="table"
tal:define="max_per_line python: 4; tal:define="max_per_line python: 4;
cell_number python: len(module_category_list); cell_number python: len(module_category_list);
row_number python: (cell_number/max_per_line+1)" row_number python: (cell_number//max_per_line+1)"
class="access_tab_table"> class="access_tab_table">
<tr tal:repeat="row python: range(row_number)"> <tr tal:repeat="row python: range(row_number)">
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]"> <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">
......
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