From: richard Date: Sat, 16 Feb 2002 08:39:43 +0000 (+0000) Subject: . #516854 ] "My Issues" and redisplay X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9f695f790dcae14c22fe6a0e23cf81d222d31d11;p=roundup.git . #516854 ] "My Issues" and redisplay git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@633 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 01b42ac..9956e7c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -22,6 +22,7 @@ Fixed: . All forms now have "double-submit" protection when Javascript is enabled on the client-side. . #516883 ] mail interface + ANONYMOUS_REGISTER + . #516854 ] "My Issues" and redisplay 2002-01-24 - 0.4.0 diff --git a/roundup/backends/__init__.py b/roundup/backends/__init__.py index e25f6cb..5bb5366 100644 --- a/roundup/backends/__init__.py +++ b/roundup/backends/__init__.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.10 2002-01-22 07:08:50 richard Exp $ +# $Id: __init__.py,v 1.11 2002-02-16 08:39:42 richard Exp $ __all__ = [] @@ -31,7 +31,7 @@ try: anydbm = back_anydbm __all__.append('anydbm') except AssertionError: - del back_anydbm + pass except ImportError: pass @@ -51,6 +51,10 @@ except ImportError: # # $Log: not supported by cvs2svn $ +# Revision 1.10 2002/01/22 07:08:50 richard +# I was certain I'd already done this (there's even a change note in +# CHANGES)... +# # Revision 1.9 2001/12/12 02:30:51 richard # I fixed the problems with people whose anydbm was using the dbm module at the # backend. It turns out the dbm module modifies the file name to append ".db" diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index 75af618..4828274 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -15,13 +15,13 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: htmltemplate.py,v 1.73 2002-02-15 07:08:44 richard Exp $ +# $Id: htmltemplate.py,v 1.74 2002-02-16 08:39:42 richard Exp $ __doc__ = """ Template engine. """ -import os, re, StringIO, urllib, cgi, errno +import os, re, StringIO, urllib, cgi, errno, types import hyperdb, date, password from i18n import _ @@ -257,20 +257,17 @@ class TemplateFunctions: value = self.determine_value(property) # display - if isinstance(propclass, hyperdb.Link): + if isinstance(propclass, hyperdb.Multilink): linkcl = self.db.classes[propclass.classname] - l = [''%(property, height)] + k = linkcl.labelprop() for optionid in options: option = linkcl.get(optionid, k) s = '' - if optionid == value: + if optionid in value: s = 'selected ' if showid: lab = '%s%s: %s'%(propclass.classname, optionid, option) @@ -279,20 +276,27 @@ class TemplateFunctions: if size is not None and len(lab) > size: lab = lab[:size-3] + '...' lab = cgi.escape(lab) - l.append(''%(s, optionid, lab)) + l.append(''%(s, optionid, + lab)) l.append('') return '\n'.join(l) - if isinstance(propclass, hyperdb.Multilink): + if isinstance(propclass, hyperdb.Link): + # force the value to be a single choice + if type(value) is types.ListType: + value = value[0] linkcl = self.db.classes[propclass.classname] + l = [''%(property, height)] - k = linkcl.labelprop() for optionid in options: option = linkcl.get(optionid, k) s = '' - if optionid in value: + if optionid == value: s = 'selected ' if showid: lab = '%s%s: %s'%(propclass.classname, optionid, option) @@ -301,8 +305,7 @@ class TemplateFunctions: if size is not None and len(lab) > size: lab = lab[:size-3] + '...' lab = cgi.escape(lab) - l.append(''%(s, optionid, - lab)) + l.append(''%(s, optionid, lab)) l.append('') return '\n'.join(l) return _('[Menu: not a link]') @@ -768,7 +771,8 @@ class IndexTemplate(TemplateFunctions): for nodeid in nodeids: # check for a group heading if group_names: - this_group = [self.cl.get(nodeid, name, _('[no value]')) for name in group_names] + this_group = [self.cl.get(nodeid, name, _('[no value]')) + for name in group_names] if this_group != old_group: l = [] for name in group_names: @@ -1064,6 +1068,10 @@ class NewItemTemplate(TemplateFunctions): # # $Log: not supported by cvs2svn $ +# Revision 1.73 2002/02/15 07:08:44 richard +# . Alternate email addresses are now available for users. See the MIGRATION +# file for info on how to activate the feature. +# # Revision 1.72 2002/02/14 23:39:18 richard # . All forms now have "double-submit" protection when Javascript is enabled # on the client-side. diff --git a/roundup/templates/classic/html/issue.filter b/roundup/templates/classic/html/issue.filter index c032c71..29e5a1a 100644 --- a/roundup/templates/classic/html/issue.filter +++ b/roundup/templates/classic/html/issue.filter @@ -1,4 +1,4 @@ - + Title @@ -11,3 +11,7 @@ Priority + + Assigned to + + diff --git a/roundup/templates/extended/html/issue.filter b/roundup/templates/extended/html/issue.filter index e4ade85..a05573d 100644 --- a/roundup/templates/extended/html/issue.filter +++ b/roundup/templates/extended/html/issue.filter @@ -1,4 +1,4 @@ - + Title @@ -25,5 +25,5 @@ Assigned to - +