Mercurial > p > roundup > code
comparison doc/upgrading.txt @ 4120:ad57b06af972
fixed classic tracker template to submit POST requests when appropriate
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 26 Mar 2009 06:17:49 +0000 |
| parents | eddb82d0964c |
| children | 61cf00ca920a |
comparison
equal
deleted
inserted
replaced
| 4119:711ca59ed678 | 4120:ad57b06af972 |
|---|---|
| 10 then you don't need to do anything. If you're upgrading from 0.5.6 to | 10 then you don't need to do anything. If you're upgrading from 0.5.6 to |
| 11 0.6.8 though, you'll need to check the "0.5 to 0.6" and "0.6.x to 0.6.3" | 11 0.6.8 though, you'll need to check the "0.5 to 0.6" and "0.6.x to 0.6.3" |
| 12 steps. | 12 steps. |
| 13 | 13 |
| 14 .. contents:: | 14 .. contents:: |
| 15 | |
| 16 Migrating from 1.4.x to 1.4.9 | |
| 17 ============================= | |
| 18 | |
| 19 Fix the "remove" button in issue files and messages lists | |
| 20 --------------------------------------------------------- | |
| 21 | |
| 22 The "remove" button(s) in the issue messages list needs to be altered. Find | |
| 23 the following in your tracker's ``html/issue.item.html`` template:: | |
| 24 | |
| 25 <td> | |
| 26 <form style="padding:0" tal:condition="context/is_edit_ok" | |
| 27 tal:attributes="action string:issue${context/id}"> | |
| 28 <input type="hidden" name="@remove@files" tal:attributes="value file/id"> | |
| 29 | |
| 30 and add ``method="POST"`` as shown below:: | |
| 31 | |
| 32 <td> | |
| 33 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok" | |
| 34 tal:attributes="action string:issue${context/id}"> | |
| 35 <input type="hidden" name="@remove@files" tal:attributes="value file/id"> | |
| 36 | |
| 37 Then also find:: | |
| 38 | |
| 39 <td> | |
| 40 <form style="padding:0" tal:condition="context/is_edit_ok" | |
| 41 tal:attributes="action string:issue${context/id}"> | |
| 42 <input type="hidden" name="@remove@messages" tal:attributes="value msg/id"> | |
| 43 | |
| 44 and add ``method="POST"`` as shown below:: | |
| 45 | |
| 46 <td> | |
| 47 <form style="padding:0" method="POST" tal:condition="context/is_edit_ok" | |
| 48 tal:attributes="action string:issue${context/id}"> | |
| 49 <input type="hidden" name="@remove@messages" tal:attributes="value msg/id"> | |
| 50 | |
| 51 | |
| 52 Fixing the "retire" button in user management list | |
| 53 -------------------------------------------------- | |
| 54 | |
| 55 If you made the change to the "reture" link in the user management list as | |
| 56 listed below in `Migrating from 1.4.x to 1.4.7`_ then you'll need to fix that | |
| 57 change by adding ``method="POST"`` to the ``<form>`` tag:: | |
| 58 | |
| 59 <form style="padding:0" method="POST" | |
| 60 tal:attributes="action string:user${user/id}"> | |
| 61 <input type="hidden" name="@template" value="index"> | |
| 62 <input type="hidden" name="@action" value="retire"> | |
| 63 <input type="submit" value="retire" i18n:attributes="value"> | |
| 64 </form> | |
| 15 | 65 |
| 16 | 66 |
| 17 Migrating from 1.4.x to 1.4.7 | 67 Migrating from 1.4.x to 1.4.7 |
| 18 ============================= | 68 ============================= |
| 19 | 69 |
| 51 i18n:translate="">retire</a> | 101 i18n:translate="">retire</a> |
| 52 | 102 |
| 53 Should be replaced with:: | 103 Should be replaced with:: |
| 54 | 104 |
| 55 <td tal:condition="context/is_retire_ok"> | 105 <td tal:condition="context/is_retire_ok"> |
| 56 <form style="padding:0" | 106 <form style="padding:0" method="POST" |
| 57 tal:attributes="action string:user${user/id}"> | 107 tal:attributes="action string:user${user/id}"> |
| 58 <input type="hidden" name="@template" value="index"> | 108 <input type="hidden" name="@template" value="index"> |
| 59 <input type="hidden" name="@action" value="retire"> | 109 <input type="hidden" name="@action" value="retire"> |
| 60 <input type="submit" value="retire" i18n:attributes="value"> | 110 <input type="submit" value="retire" i18n:attributes="value"> |
| 61 </form> | 111 </form> |
