Code

fixed classic tracker template to submit POST requests when appropriate
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 26 Mar 2009 06:17:49 +0000 (06:17 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 26 Mar 2009 06:17:49 +0000 (06:17 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4212 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
doc/upgrading.txt
share/roundup/templates/classic/html/issue.item.html

index 7800cb439080d0550a1c2bbfe356b3c1d2f95a53..508b3349ce3f15fe505481ead138aa217fd1df3e 100644 (file)
@@ -6,6 +6,7 @@ are given with the most recent entry first.
 Fixes:
 
 - fixed action taken in response to invalid GET request
+- fixed classic tracker template to submit POST requests when appropriate
 
 
 2009-03-18 1.4.8 (r4209)
index 39f27f423870964fc6fec708a4ee0b07d502d944..a2248720c61b1ed39ddf551be877582939aae4a0 100644 (file)
@@ -13,6 +13,56 @@ steps.
 
 .. contents::
 
+Migrating from 1.4.x to 1.4.9
+=============================
+
+Fix the "remove" button in issue files and messages lists
+---------------------------------------------------------
+
+The "remove" button(s) in the issue messages list needs to be altered. Find
+the following in your tracker's ``html/issue.item.html`` template::
+
+  <td>
+   <form style="padding:0" tal:condition="context/is_edit_ok"
+         tal:attributes="action string:issue${context/id}">
+    <input type="hidden" name="@remove@files" tal:attributes="value file/id">
+
+and add ``method="POST"`` as shown below::
+
+  <td>
+   <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
+         tal:attributes="action string:issue${context/id}">
+    <input type="hidden" name="@remove@files" tal:attributes="value file/id">
+
+Then also find::
+
+  <td>
+   <form style="padding:0" tal:condition="context/is_edit_ok"
+         tal:attributes="action string:issue${context/id}">
+    <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
+
+and add ``method="POST"`` as shown below::
+
+  <td>
+   <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
+         tal:attributes="action string:issue${context/id}">
+    <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
+
+
+Fixing the "retire" button in user management list
+--------------------------------------------------
+
+If you made the change to the "reture" link in the user management list as
+listed below in `Migrating from 1.4.x to 1.4.7`_ then you'll need to fix that
+change by adding ``method="POST"`` to the ``<form>`` tag::
+
+     <form style="padding:0" method="POST"
+           tal:attributes="action string:user${user/id}">
+      <input type="hidden" name="@template" value="index">
+      <input type="hidden" name="@action" value="retire">
+      <input type="submit" value="retire" i18n:attributes="value">
+     </form>
+
 
 Migrating from 1.4.x to 1.4.7
 =============================
@@ -53,7 +103,7 @@ The "retire" link found in the file ``html/users.index.html``::
 Should be replaced with::
 
   <td tal:condition="context/is_retire_ok">
-     <form style="padding:0"
+     <form style="padding:0" method="POST"
            tal:attributes="action string:user${user/id}">
       <input type="hidden" name="@template" value="index">
       <input type="hidden" name="@action" value="retire">
index 41ee073895750a69432814ef07d613b420cbce72..f84114f57fc9c0daf8419abfdcb9bedd5d145997 100644 (file)
@@ -151,7 +151,7 @@ python:db.user.classhelp('username,realname,address', property='nosy', width='60
           tal:attributes="href string:file${file/id}">edit</a>
   </td>
   <td>
-   <form style="padding:0" tal:condition="context/is_edit_ok"
+   <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
          tal:attributes="action string:issue${context/id}">
     <input type="hidden" name="@remove@files" tal:attributes="value file/id">
     <input type="hidden" name="@action" value="edit">
@@ -172,7 +172,7 @@ python:db.user.classhelp('username,realname,address', property='nosy', width='60
    <th i18n:translate="">Date: <tal:x replace="msg/date"
        i18n:name="date" /></th>
    <th>
-    <form style="padding:0" tal:condition="context/is_edit_ok"
+    <form style="padding:0" method="POST" tal:condition="context/is_edit_ok"
           tal:attributes="action string:issue${context/id}">
      <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
      <input type="hidden" name="@action" value="edit">