cubicweb/web/views/edit_attributes.pt
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 29 Oct 2018 10:04:31 +0100
branch3.26
changeset 12432 2fcb53ee5178
parent 11057 0b59724cb3f2
permissions -rw-r--r--
Fix flake8 issues since release 3.6.0 Flake8 had a new release which raise new issues, namely: W504: line break after binary operator F841: local variable 'ex' is assigned to but never used W605: invalid escape sequence F821: undefined name 'buffer' (noqa seems the only way to avoid this false positive) Also pin flake8>=3.6 in our tests and make explicit that we use python3 to run flake8 tests.

  <table class="attributeForm" style="width:100%;"
	 tal:attributes="id tab_id | nothing;
			 class tab_class | nothing;">
    <tr tal:iter="widget lines">
      <th class="labelCol" tal:content="structure python:widget.render_label(entity)">attrname</th>
      <td tal:define="error python:widget.render_error(entity)" style="width:100%;"
          tal:attributes="class python:error and 'error' or nothing">
	<div tal:replace="structure error">error message if any</div>
	<div tal:replace="structure python:widget.edit_render(entity)" >widget (input, textarea, etc.)</div>
	<div tal:replace="structure python:widget.render_help(entity)">format help if any</div>
      </td>
    </tr>
  </table>