Code

- fix CGI editCSV action to handle metakit's integer itemids
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 28 Aug 2003 01:39:15 +0000 (01:39 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 28 Aug 2003 01:39:15 +0000 (01:39 +0000)
 - apply fix for "remove" links from Klamer Schutte
 - added permission check on "remove" link while I was there..

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1832 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
doc/index.txt
roundup/cgi/client.py
templates/classic/html/issue.item.html

index 41db9d6e8fa5b54129cb6fe6417818121048bb46..b4346010f1293b3ca9c5013778bdfa641f712340 100644 (file)
@@ -7,6 +7,9 @@ Fixed:
 - Importing wasn't setting None values explicitly when it should have been
 - Fixed import warning regarding 0xffff0000 literal, finally, really this
   time. Checked on win2k. (sf bug 786711)
+- fix CGI editCSV action to handle metakit's integer itemids
+- apply fix for "remove" links from Klamer Schutte
+- added permission check on "remove" link while I was there..
 
 
 2003-08-08 0.6.0
index 5675e7b793468b6f2850517b165ab68f85f4be6f..47b7e8284963a36c94b7002c20ba5e6629f0cb43 100644 (file)
@@ -81,6 +81,7 @@ Florian Schulze,
 Dougal Scott,
 Stefan Seefeld,
 Jeffrey P Shell,
+Klamer Schutte,
 Joel Shprentz,
 Terrel Shumway,
 Nathaniel Smith,
index eddd31c9d071d308d5ae4f1a805bdf44a0112377..c2ccb937fe1a579b8cad312bdbfc9b3c7a0447fd 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.130 2003-08-13 23:51:59 richard Exp $
+# $Id: client.py,v 1.131 2003-08-28 01:39:15 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -995,14 +995,14 @@ You should then receive another email with the new password.
         try:
             props, links = self.parsePropsFromForm()
         except (ValueError, KeyError), message:
-            self.error_message.append(_('Error: ') + str(message))
+            self.error_message.append(_('Parse Error: ') + str(message))
             return
 
         # handle the props
         try:
             message = self._editnodes(props, links)
         except (ValueError, KeyError, IndexError), message:
-            self.error_message.append(_('Error: ') + str(message))
+            self.error_message.append(_('Apply Error: ') + str(message))
             return
 
         # commit now that all the tricky stuff is done
@@ -1252,10 +1252,10 @@ You should then receive another email with the new password.
             found[nodeid] = 1
 
             # see if the node exists
-            if cl.hasnode(nodeid):
-                exists = 1
-            else:
+            if nodeid in ('x', 'X') or not cl.hasnode(nodeid):
                 exists = 0
+            else:
+                exists = 1
 
             # confirm correct weight
             if len(idlessprops) != len(values):
index 751a4d5cf949e9f277e295639ea26fb6c6c3d84e..0700966431ba6f3bf85be779e9e1ae8bca867f18 100644 (file)
@@ -140,7 +140,8 @@ python:db.user.classhelp('username,realname,address', property='nosy', width='60
     <th tal:content="string:Author: ${msg/author}">author</th>
     <th tal:content="string:Date: ${msg/date}">date</th>
     <th>
-     <a tal:attributes="href string:?:remove:messages=${msg/id}&:action=edit">remove</a>
+     <a tal:condition="context/is_edit_ok"
+        tal:attributes="href string:issue${context/id}?:remove:messages=${msg/id}&:action=edit">remove</a>
     </th>
    </tr>
    <tr>