diff roundup/cgi/actions.py @ 3855:de4c2e538e06

Bug-Fix: File attachments from the web-interface didn't work. Added test for file attachments.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Tue, 15 May 2007 16:23:39 +0000
parents d1eb694edcc7
children 00896a2acaa5
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Sat May 12 16:14:54 2007 +0000
+++ b/roundup/cgi/actions.py	Tue May 15 16:23:39 2007 +0000
@@ -1,4 +1,4 @@
-#$Id: actions.py,v 1.69 2007-05-09 06:18:52 schlatterbeck Exp $
+#$Id: actions.py,v 1.70 2007-05-15 16:23:39 schlatterbeck Exp $
 
 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs
 
@@ -367,7 +367,8 @@
         deps = {}
         links = {}
         for cn, nodeid, propname, vlist in all_links:
-            if not (nodeid or all_props.has_key((cn, nodeid))):
+            numeric_id = int (nodeid or 0)
+            if not (numeric_id > 0 or all_props.has_key((cn, nodeid))):
                 # link item to link to doesn't (and won't) exist
                 continue
 

Roundup Issue Tracker: http://roundup-tracker.org/