changeset 245:8a0d548c07a1

Fixed bug in the generation of links to Link/Multilink in indexes. (thanks Hubert Hoegl) Added AssignedTo to the "classic" schema's item page.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 10 Sep 2001 09:47:18 +0000
parents 6bf584784e31
children b51591375158
files roundup/htmltemplate.py roundup/templates/classic/html/issue.index roundup/templates/classic/html/issue.item roundup/templates/classic/htmlbase.py
diffstat 4 files changed, 26 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Thu Aug 30 06:01:17 2001 +0000
+++ b/roundup/htmltemplate.py	Mon Sep 10 09:47:18 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: htmltemplate.py,v 1.22 2001-08-30 06:01:17 richard Exp $
+# $Id: htmltemplate.py,v 1.23 2001-09-10 09:47:18 richard Exp $
 
 import os, re, StringIO, urllib, cgi, errno
 
@@ -207,19 +207,21 @@
             if isinstance(propclass, hyperdb.Multilink): value = []
             else: value = ''
         if isinstance(propclass, hyperdb.Link):
+            linkname = propclass.classname
             if value is None:
                 return '[not assigned]'
-            linkcl = self.db.classes[propclass.classname]
+            linkcl = self.db.classes[linkname]
             k = linkcl.labelprop()
             linkvalue = linkcl.get(value, k)
-            return '<a href="%s%s">%s</a>'%(linkcl, value, linkvalue)
+            return '<a href="%s%s">%s</a>'%(linkname, value, linkvalue)
         if isinstance(propclass, hyperdb.Multilink):
-            linkcl = self.db.classes[propclass.classname]
+            linkname = propclass.classname
+            linkcl = self.db.classes[linkname]
             k = linkcl.labelprop()
             l = []
             for value in value:
                 linkvalue = linkcl.get(value, k)
-                l.append('<a href="%s%s">%s</a>'%(linkcl, value, linkvalue))
+                l.append('<a href="%s%s">%s</a>'%(linkname, value, linkvalue))
             return ', '.join(l)
         return '<a href="%s%s">%s</a>'%(self.classname, self.nodeid, value)
 
@@ -743,6 +745,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.22  2001/08/30 06:01:17  richard
+# Fixed missing import in mailgw :(
+#
 # Revision 1.21  2001/08/16 07:34:59  richard
 # better CGI text searching - but hidden filter fields are disappearing...
 #
--- a/roundup/templates/classic/html/issue.index	Thu Aug 30 06:01:17 2001 +0000
+++ b/roundup/templates/classic/html/issue.index	Mon Sep 10 09:47:18 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $Id: issue.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
+<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
 <tr class="row-<display call="plain('status')">">
     <property name="id">
         <td valign="top"><display call="plain('id')"></td>
--- a/roundup/templates/classic/html/issue.item	Thu Aug 30 06:01:17 2001 +0000
+++ b/roundup/templates/classic/html/issue.item	Mon Sep 10 09:47:18 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $Id: issue.item,v 1.4 2001-08-03 01:19:43 richard Exp $-->
+<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
 <table border=0 cellspacing=0 cellpadding=2>
 
 <tr  bgcolor="ffffea">
@@ -29,6 +29,13 @@
 </tr>
 
 <tr bgcolor="ffffea">
+    <td width=1% nowrap align=right><span class="form-label">Assigned To</span></td>
+    <td class="form-text"><display call="field('assignedto')"></td>
+    <td>&nbsp;</td>
+    <td>&nbsp;</td>
+</tr>
+
+<tr bgcolor="ffffea">
     <td width=1% nowrap align=right><span class="form-label">Change Note</span></td>
     <td colspan=3 class="form-text"><display call="note()"></td>
 </tr>
--- a/roundup/templates/classic/htmlbase.py	Thu Aug 30 06:01:17 2001 +0000
+++ b/roundup/templates/classic/htmlbase.py	Mon Sep 10 09:47:18 2001 +0000
@@ -102,6 +102,13 @@
 </tr>
 
 <tr bgcolor="ffffea">
+    <td width=1% nowrap align=right><span class="form-label">Assigned To</span></td>
+    <td class="form-text"><display call="field('assignedto')"></td>
+    <td>&nbsp;</td>
+    <td>&nbsp;</td>
+</tr>
+
+<tr bgcolor="ffffea">
     <td width=1% nowrap align=right><span class="form-label">Change Note</span></td>
     <td colspan=3 class="form-text"><display call="note()"></td>
 </tr>

Roundup Issue Tracker: http://roundup-tracker.org/