Commit e2278ed1 authored by Julien Muchembled's avatar Julien Muchembled

code cleanup

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