Mercurial > p > roundup > code
view website/issues/html/file.index.html @ 5604:ed02a1e0aa5d REST-rebased
Fix actions
Permission for retire in roundup/actions.py was with 'Edit' permission,
not 'Retire' permission. Add a 'restore' action to roundup/actions.py.
Both are now correctly used in rest.py and xmlrpc.py (the latter had
some errors when printint error messages).
Also reworked the rest implementation: Despite the warnings in the
roundup API in hyperdb.py the DELETE http method would *destroy* and not
*retire* an item. This has been fixed. We also do not allow retire of a
complete class (although this was implemented) because this seems to
dangerous and we see no use-case.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 30 Jan 2019 14:12:27 +0100 |
| parents | 447a7647f237 |
| children |
line wrap: on
line source
<tal:block metal:use-macro="templates/page/macros/icing"> <title metal:fill-slot="head_title" i18n:translate="" >List of files - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" /></title> <span metal:fill-slot="body_title" tal:omit-tag="python:1" i18n:translate="">List of files</span> <td class="content" metal:fill-slot="content"> <table class="otherinfo" tal:define="batch request/batch"> <tr><th style="padding-right: 10" i18n:translate="">Download</th> <th style="padding-right: 10" i18n:translate="">Description</th> <th style="padding-right: 10" i18n:translate="">Content Type</th> <th style="padding-right: 10" i18n:translate="">Uploaded By</th> <th style="padding-right: 10" i18n:translate="">Date</th> </tr> <tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6//3]"> <td> <a tal:attributes="href string:file${file/id}/${file/name}" tal:content="file/name">dld link</a> </td> <td tal:content="file/description">description</td> <td tal:content="file/type">content type</td> <td tal:content="file/creator">creator's name</td> <td tal:content="file/creation">creation date</td> </tr> <metal:block use-macro="templates/issue.index/macros/batch-footer" /> </table> </td> </tal:block>
