Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 4839:c317147fd891
Fix copy_url to properly support properties that are mutlilinks.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 07 Oct 2013 19:29:33 -0400 |
| parents | bc4144417861 |
| children | 1e4c45a4254b |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Oct 02 15:36:34 2013 +0200 +++ b/roundup/cgi/templating.py Mon Oct 07 19:29:33 2013 -0400 @@ -1159,7 +1159,12 @@ } for name in self._props.keys(): if name not in exclude: - query[name] = self[name].plain() + prop = self._props[name] + if not isinstance(prop, hyperdb.Multilink): + query[name] = self[name].plain() + else: + query[name] = ",".join(self._klass.get(self._nodeid, name)) + return self._classname + "?" + "&".join( ["%s=%s" % (key, urllib.quote(value)) for key, value in query.items()])
