summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e876db)
raw | patch | inline | side by side (parent: 5e876db)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 18 Mar 2004 02:33:15 +0000 (02:33 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 18 Mar 2004 02:33:15 +0000 (02:33 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2152 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/templating.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index f0c79f6082e056cdfb7035a830f73f03ceabb0d3..a217160939572296a7dab2cd57b0b8051fffd839 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- existing trackers (ie. live ones) may be used as templates for new
trackers - the TEMPLATE-INFO.txt name entry has the tracker's dir name
appended (so the demo tracker's template name is "classic-demo")
+- handle bad multilink input at item creation time better (sf bug 917834)
2004-03-01 0.6.7
index c2635bbf910b1b34db8cef8a25d436d3fb382e03..f3789f0e13e946bcd53c28d068f87f70a7ec2f88 100644 (file)
l.append(entry)
return l
+def lookupKeys(linkcl, key, ids, num_re=re.compile('-?\d+')):
+ ''' Look up the "key" values for "ids" list - though some may already
+ be key values, not ids.
+ '''
+ l = []
+ for entry in ids:
+ if num_re.match(entry):
+ l.append(cl.get(entry, key))
+ else:
+ l.append(entry)
+ return l
+
class HTMLPermissions:
''' Helpers that provide answers to commonly asked Permission questions.
'''
showid=1
if not showid:
k = linkcl.labelprop(1)
- value = [linkcl.get(v, k) for v in value]
+ value = lookupKeys(linkcl, k, value)
value = cgi.escape(','.join(value))
return self.input(name=self._formname,size=size,value=value)