summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cdba24a)
raw | patch | inline | side by side (parent: cdba24a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 07:04:36 +0000 (07:04 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 07:04:36 +0000 (07:04 +0000) |
the linked node's page.
... this allows a display very similar to bugzilla's where you can actually
find out information about the linked node.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@543 57a73879-2fb5-44c3-a270-3262357dd7e2
... this allows a display very similar to bugzilla's where you can actually
find out information about the linked node.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@543 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 6f8192d24b1f83f4e91680a1dbd06e74456e633d..906a851df55312e8cd59f2055dd70d19654fa6c6 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. #502951 ] adding new properties to old database
. #502953 ] nosy-like treatment of other multilinks
. #503164 ] create and passwords
+ . plain rendering of links in the htmltemplate now generate a hyperlink to
+ the linked node's page.
2002-01-08 - 0.4.0b1
index a1f3a89272a1510aed63681124d214bc125f02f6..3b98e924b0ef003c13b9c269add7051cd56ac10f 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.55 2002-01-14 06:45:03 richard Exp $
+# $Id: htmltemplate.py,v 1.56 2002-01-14 07:04:36 richard Exp $
__doc__ = """
Template engine.
elif isinstance(propclass, hyperdb.Link):
linkcl = self.db.classes[propclass.classname]
k = linkcl.labelprop()
- if value: value = str(linkcl.get(value, k))
- else: value = _('[unselected]')
+ if value:
+ value = '<a href="%s%s">%s</a>'%(propclass.classname, value,
+ linkcl.get(value, k))
+ else:
+ value = _('[unselected]')
elif isinstance(propclass, hyperdb.Multilink):
linkcl = self.db.classes[propclass.classname]
k = linkcl.labelprop()
- value = ', '.join([linkcl.get(i, k) for i in value])
+ value = ', '.join(['<a href="%s%s">%s</a>'%(propclass.classname,
+ i, linkcl.get(i, k)) for i in value])
else:
s = _('Plain: bad propclass "%(propclass)s"')%locals()
if escape:
#
# $Log: not supported by cvs2svn $
+# Revision 1.55 2002/01/14 06:45:03 richard
+# . #502953 ] nosy-like treatment of other multilinks
+# ... had to revert most of the previous change to the multilink field
+# display... not good.
+#
# 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.