Commit e2278ed1 authored by Julien Muchembled's avatar Julien Muchembled

code cleanup

parent 426ce7f0
......@@ -66,14 +66,14 @@ for item in listbox:\n
else:\n
choice = "nothing"\n
bt_id, object_id = item[\'listbox_key\'].split(\'|\')\n
bt_dict.setdefault(bt_id, dict())[object_id] = choice\n
bt_dict.setdefault(bt_id, {})[object_id] = choice\n
\n
bt_title_list = []\n
for bt_id in bt_id_list:\n
if bt_id not in bt_dict.keys():\n
object_list={}\n
else:\n
try:\n
object_list = bt_dict[bt_id]\n
except KeyError:\n
object_list = {}\n
if bt_id == bt_id_list[-1]:\n
update_catalog = kw.get(\'update_catalog\')\n
update_translation = kw.get(\'update_translation\')\n
......
41105
\ No newline at end of file
41106
\ No newline at end of file
......@@ -50,10 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>enctype = getattr(context, "enctype")\n
if enctype in (\'\', None):\n
return None\n
return enctype\n
<value> <string>return context.enctype or None\n
</string> </value>
</item>
<item>
......
1103
\ No newline at end of file
1104
\ 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