Commit 7cf98de0 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix ERP5XhtmlStyle_getFormEnctype : get() method on forms does not work...

Fix ERP5XhtmlStyle_getFormEnctype : get() method on forms does not work straightforward so, better use as a dict.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10179 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e360af7
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if form is None:\n <value> <string>if form is None:\n
return None\n return None\n
enctype = form.get(\'enctype\')\n enctype = form[\'enctype\']\n
if enctype in (\'\', None):\n if enctype in (\'\', None):\n
return None\n return None\n
return enctype\n return enctype\n
...@@ -124,7 +124,7 @@ return enctype\n ...@@ -124,7 +124,7 @@ return enctype\n
<tuple> <tuple>
<string>form</string> <string>form</string>
<string>None</string> <string>None</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>enctype</string> <string>enctype</string>
</tuple> </tuple>
</value> </value>
......
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