Mercurial > p > roundup > code
changeset 852:ffa26dfa7ea0 maint-0.4
[SF#516854] "My Issues" and redisplay (no, really, this time for sure)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 10 Jul 2002 07:21:18 +0000 |
| parents | 2e214b125085 |
| children | 67384138288e |
| files | CHANGES.txt roundup/htmltemplate.py |
| diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Wed Jul 10 06:51:08 2002 +0000 +++ b/CHANGES.txt Wed Jul 10 07:21:18 2002 +0000 @@ -8,6 +8,7 @@ . bsddb3 backend should use 'c' for create, not 'n' for nuke . #571170 ] gdbm deadlock . #576241 ] MultiLink problems in parsePropsFromForm + . #516854 ] "My Issues" and redisplay 2002-06-24 0.4.2
--- a/roundup/htmltemplate.py Wed Jul 10 06:51:08 2002 +0000 +++ b/roundup/htmltemplate.py Wed Jul 10 07:21:18 2002 +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.92 2002-06-11 04:57:04 richard Exp $ +# $Id: htmltemplate.py,v 1.92.2.1 2002-07-10 07:21:18 richard Exp $ __doc__ = """ Template engine. @@ -146,10 +146,18 @@ return [] return value elif self.filterspec is not None: + print self.filterspec if isinstance(propclass, hyperdb.Multilink): return self.filterspec.get(property, []) else: - return self.filterspec.get(property, '') + if not self.filterspec.has_key(property): + return '' + value = self.filterspec[property] + if hasattr(value, 'value'): + value = value.value + if isinstance(value, type([])): + value = value[0] + return value # TODO: pull the value from the form if isinstance(propclass, hyperdb.Multilink): return [] @@ -1191,6 +1199,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.92 2002/06/11 04:57:04 richard +# Added optional additional property to display in a Multilink form menu. +# # Revision 1.91 2002/05/31 00:08:02 richard # can now just display a link/multilink id - useful for stylesheet stuff #
