|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: htmltemplate.py,v 1.56 2002-01-14 07:04:36 richard Exp $ |
| 18 | +# $Id: htmltemplate.py,v 1.57 2002-01-14 23:31:21 richard Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Template engine. |
@@ -86,15 +86,13 @@ def do_plain(self, property, escape=0): |
86 | 86 | linkcl = self.db.classes[propclass.classname] |
87 | 87 | k = linkcl.labelprop() |
88 | 88 | if value: |
89 | | - value = '<a href="%s%s">%s</a>'%(propclass.classname, value, |
90 | | - linkcl.get(value, k)) |
| 89 | + value = linkcl.get(value, k) |
91 | 90 | else: |
92 | 91 | value = _('[unselected]') |
93 | 92 | elif isinstance(propclass, hyperdb.Multilink): |
94 | 93 | linkcl = self.db.classes[propclass.classname] |
95 | 94 | k = linkcl.labelprop() |
96 | | - value = ', '.join(['<a href="%s%s">%s</a>'%(propclass.classname, |
97 | | - i, linkcl.get(i, k)) for i in value]) |
| 95 | + value = ', '.join(value) |
98 | 96 | else: |
99 | 97 | s = _('Plain: bad propclass "%(propclass)s"')%locals() |
100 | 98 | if escape: |
@@ -886,6 +884,12 @@ def render(self, form): |
886 | 884 |
|
887 | 885 | # |
888 | 886 | # $Log: not supported by cvs2svn $ |
| 887 | +# Revision 1.56 2002/01/14 07:04:36 richard |
| 888 | +# . plain rendering of links in the htmltemplate now generate a hyperlink to |
| 889 | +# the linked node's page. |
| 890 | +# ... this allows a display very similar to bugzilla's where you can actually |
| 891 | +# find out information about the linked node. |
| 892 | +# |
889 | 893 | # Revision 1.55 2002/01/14 06:45:03 richard |
890 | 894 | # . #502953 ] nosy-like treatment of other multilinks |
891 | 895 | # ... had to revert most of the previous change to the multilink field |
|
0 commit comments