summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f262b4)
raw | patch | inline | side by side (parent: 6f262b4)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 06:45:03 +0000 (06:45 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 06:45:03 +0000 (06:45 +0000) |
... had to revert most of the previous change to the multilink field
display... not good.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@540 57a73879-2fb5-44c3-a270-3262357dd7e2
display... not good.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@540 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/htmltemplate.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index d232e9c33fa43ec010ae80924adf8f75547bc9ca..85e33f81da9846f117e0bb4ce9c14f37521054f0 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
instance_config instead of the mish-mash of classes. This will make
switching to a ConfigParser setup easier too, I hope.
. #502951 ] adding new properties to old database
+ . #502953 ] nosy-like treatment of other multilinks
2002-01-08 - 0.4.0b1
index 09746e3ad9637d9c2f761bb55d189649234ea099..a1f3a89272a1510aed63681124d214bc125f02f6 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.54 2002-01-14 05:16:51 richard Exp $
+# $Id: htmltemplate.py,v 1.55 2002-01-14 06:45:03 richard Exp $
__doc__ = """
Template engine.
elif isinstance(propclass, hyperdb.Multilink):
list = linkcl.list()
list.sort(sortfunc)
- k = linkcl.labelprop()
l = []
- # special treatment for nosy list
- if property == 'nosy':
- input_value = []
- else:
- input_value = value
- for v in value:
- lab = linkcl.get(v, k)
- if property != 'nosy':
- l.append('<a href="issue%s">%s: %s</a>'%(v,v,lab))
- else:
- input_value.append(lab)
+ # map the id to the label property
+ # TODO: allow reversion to the older <select> box style display
+ if not showid:
+ k = linkcl.labelprop()
+ value = [linkcl.get(v, k) for v in value]
if size is None:
size = '10'
l.insert(0,'<input name="%s" size="%s" value="%s">'%(property,
- size, ','.join(input_value)))
+ size, ','.join(value)))
s = "<br>\n".join(l)
else:
s = _('Plain: bad propclass "%(propclass)s"')%locals()
#
# $Log: not supported by cvs2svn $
+# Revision 1.54 2002/01/14 05:16:51 richard
+# The submit buttons need a name attribute or mozilla won't submit without a
+# file upload. Yeah, that's bloody obscure. Grr.
+#
# Revision 1.53 2002/01/14 04:03:32 richard
# How about that ... date fields have never worked ...
#