Commit 7b1520af authored by Romain Courteaud's avatar Romain Courteaud

Always provide field's title and key.

parent fb7dfd87
...@@ -126,12 +126,16 @@ def renderField(field, meta_type=None):\n ...@@ -126,12 +126,16 @@ def renderField(field, meta_type=None):\n
"type": meta_type,\n "type": meta_type,\n
"column_list": [x[1] for x in columns],\n "column_list": [x[1] for x in columns],\n
"line_list": line_list,\n "line_list": line_list,\n
"title": field.get_value("title"),\n
"key": field.generate_field_key(),\n
}\n }\n
else:\n else:\n
# XXX Not implemented\n # XXX Not implemented\n
result = {\n result = {\n
"type": meta_type,\n "type": meta_type,\n
"_debug": "Unsupported field type"\n "_debug": "Unsupported field type",\n
"title": field.get_value("title"),\n
"key": field.generate_field_key(),\n
}\n }\n
return result\n return result\n
\n \n
......
4 5
\ 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