Skip to content

Commit 5149956

Browse files
author
Richard Jones
committed
[SF#516854] "My Issues" and redisplay (no, really, this time for sure)
1 parent a2c2c01 commit 5149956

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Fixed:
88
. bsddb3 backend should use 'c' for create, not 'n' for nuke
99
. #571170 ] gdbm deadlock
1010
. #576241 ] MultiLink problems in parsePropsFromForm
11+
. #516854 ] "My Issues" and redisplay
1112

1213

1314
2002-06-24 0.4.2

roundup/htmltemplate.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.92 2002-06-11 04:57:04 richard Exp $
18+
# $Id: htmltemplate.py,v 1.92.2.1 2002-07-10 07:21:18 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -146,10 +146,18 @@ def determine_value(self, property):
146146
return []
147147
return value
148148
elif self.filterspec is not None:
149+
print self.filterspec
149150
if isinstance(propclass, hyperdb.Multilink):
150151
return self.filterspec.get(property, [])
151152
else:
152-
return self.filterspec.get(property, '')
153+
if not self.filterspec.has_key(property):
154+
return ''
155+
value = self.filterspec[property]
156+
if hasattr(value, 'value'):
157+
value = value.value
158+
if isinstance(value, type([])):
159+
value = value[0]
160+
return value
153161
# TODO: pull the value from the form
154162
if isinstance(propclass, hyperdb.Multilink):
155163
return []
@@ -1191,6 +1199,9 @@ def render(self, form):
11911199

11921200
#
11931201
# $Log: not supported by cvs2svn $
1202+
# Revision 1.92 2002/06/11 04:57:04 richard
1203+
# Added optional additional property to display in a Multilink form menu.
1204+
#
11941205
# Revision 1.91 2002/05/31 00:08:02 richard
11951206
# can now just display a link/multilink id - useful for stylesheet stuff
11961207
#

0 commit comments

Comments
 (0)