Skip to content

Commit 20faa95

Browse files
author
Richard Jones
committed
merge from maint-0-8
1 parent 887b100 commit 20faa95

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ Feature:
88
- added Xapian indexer; replaces standard indexers if Xapian is available
99

1010

11-
2005-??-?? 0.8.4
11+
2005-??-?? 0.8.5
12+
Fixed:
13+
- Display of Multilinks where linked Class labelprop values are None
14+
15+
16+
2005-07-18 0.8.4
1217
Fixed:
1318
- extra CRs in CSV export files on Windows platform (sf bug 1195742)
1419
- activity RDBMS columns were being reported in changes

roundup/cgi/templating.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,10 @@ def lookupKeys(linkcl, key, ids, num_re=re.compile('^-?\d+$')):
383383
l = []
384384
for entry in ids:
385385
if num_re.match(entry):
386-
l.append(linkcl.get(entry, key))
386+
label = linkcl.get(entry, key)
387+
# fall back to designator if label is None
388+
if label is None: label = '%s%s'%(linkcl.classname, entry)
389+
l.append(label)
387390
else:
388391
l.append(entry)
389392
return l
@@ -935,6 +938,9 @@ def history(self, direction='descending', dre=re.compile('^\d+$')):
935938
if hrefable:
936939
subml.append('<a href="%s%s">%s</a>'%(
937940
classname, linkid, label))
941+
elif label is None:
942+
subml.append('%s%s'%(classname,
943+
linkid))
938944
else:
939945
subml.append(label)
940946
ml.append(sublabel + ', '.join(subml))
@@ -1822,7 +1828,10 @@ def plain(self, escape=0):
18221828
k = linkcl.labelprop(1)
18231829
labels = []
18241830
for v in self._value:
1825-
labels.append(linkcl.get(v, k))
1831+
label = linkcl.get(v, k)
1832+
# fall back to designator if label is None
1833+
if label is None: label = '%s%s'%(self._prop.classname, k)
1834+
labels.append(label)
18261835
value = ', '.join(labels)
18271836
if escape:
18281837
value = cgi.escape(value)

0 commit comments

Comments
 (0)