From: richard Date: Mon, 10 Sep 2001 09:47:18 +0000 (+0000) Subject: Fixed bug in the generation of links to Link/Multilink in indexes. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d65cfd8585f28fa9411cd5a6f75bd63691b01ea7;p=roundup.git Fixed bug in the generation of links to Link/Multilink in indexes. (thanks Hubert Hoegl) Added AssignedTo to the "classic" schema's item page. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@253 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index 7e9eb90..de6f10d 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -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 @@ class Link(Base): 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 '%s'%(linkcl, value, linkvalue) + return '%s'%(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('%s'%(linkcl, value, linkvalue)) + l.append('%s'%(linkname, value, linkvalue)) return ', '.join(l) return '%s'%(self.classname, self.nodeid, value) @@ -743,6 +745,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile( # # $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... # diff --git a/roundup/templates/classic/html/issue.index b/roundup/templates/classic/html/issue.index index 60bc4d7..586cdb5 100644 --- a/roundup/templates/classic/html/issue.index +++ b/roundup/templates/classic/html/issue.index @@ -1,4 +1,4 @@ - + "> diff --git a/roundup/templates/classic/html/issue.item b/roundup/templates/classic/html/issue.item index 81364d4..f0f7c67 100644 --- a/roundup/templates/classic/html/issue.item +++ b/roundup/templates/classic/html/issue.item @@ -1,4 +1,4 @@ - + @@ -28,6 +28,13 @@ + + + + + + + diff --git a/roundup/templates/classic/htmlbase.py b/roundup/templates/classic/htmlbase.py index cbebe45..0240c7b 100644 --- a/roundup/templates/classic/htmlbase.py +++ b/roundup/templates/classic/htmlbase.py @@ -101,6 +101,13 @@ issueDOTitem = """
Assigned To  
Change Note