Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3854:f4e8dc583256 | 3855:de4c2e538e06 |
|---|---|
| 1 #$Id: actions.py,v 1.69 2007-05-09 06:18:52 schlatterbeck Exp $ | 1 #$Id: actions.py,v 1.70 2007-05-15 16:23:39 schlatterbeck Exp $ |
| 2 | 2 |
| 3 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs | 3 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs |
| 4 | 4 |
| 5 from roundup import hyperdb, token, date, password | 5 from roundup import hyperdb, token, date, password |
| 6 from roundup.i18n import _ | 6 from roundup.i18n import _ |
| 365 ''' | 365 ''' |
| 366 # figure dependencies and re-work links | 366 # figure dependencies and re-work links |
| 367 deps = {} | 367 deps = {} |
| 368 links = {} | 368 links = {} |
| 369 for cn, nodeid, propname, vlist in all_links: | 369 for cn, nodeid, propname, vlist in all_links: |
| 370 if not (nodeid or all_props.has_key((cn, nodeid))): | 370 numeric_id = int (nodeid or 0) |
| 371 if not (numeric_id > 0 or all_props.has_key((cn, nodeid))): | |
| 371 # link item to link to doesn't (and won't) exist | 372 # link item to link to doesn't (and won't) exist |
| 372 continue | 373 continue |
| 373 | 374 |
| 374 for value in vlist: | 375 for value in vlist: |
| 375 if not all_props.has_key(value): | 376 if not all_props.has_key(value): |
