Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1099:7362dc1f0226
Made "creator" property a String like it should be (we can't lookup()
retired users reliably)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Sep 2002 08:04:57 +0000 |
| parents | 98f3d41f41d9 |
| children | db787cef1385 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Sep 10 07:07:16 2002 +0000 +++ b/roundup/cgi/templating.py Tue Sep 10 08:04:57 2002 +0000 @@ -227,9 +227,6 @@ # we don't exist if item == 'id': return None - if item == 'creator': - # but we will be created by this user... - return HTMLUser(self._client, 'user', self._client.userid) # get the property prop = self._props[item] @@ -768,7 +765,7 @@ def plain(self, escape=0): if self._value is None: - return _('[unselected]') + return '' linkcl = self._db.classes[self._prop.classname] k = linkcl.labelprop(1) value = str(linkcl.get(self._value, k)) @@ -807,21 +804,6 @@ l.append('</select>') return '\n'.join(l) - def download(self, showid=0): - linkname = self._prop.classname - linkcl = self._db.getclass(linkname) - k = linkcl.labelprop(1) - linkvalue = cgi.escape(str(linkcl.get(self._value, k))) - if showid: - label = value - title = ' title="%s"'%linkvalue - # note ... this should be urllib.quote(linkcl.get(value, k)) - else: - label = linkvalue - title = '' - return '<a href="%s%s/%s"%s>%s</a>'%(linkname, self._value, - linkvalue, title, label) - def menu(self, size=None, height=None, showid=0, additional=[], **conditions): value = self._value @@ -864,7 +846,6 @@ l.append('<option %svalue="%s">%s</option>'%(s, optionid, lab)) l.append('</select>') return '\n'.join(l) - # def checklist(self, ...) class MultilinkHTMLProperty(HTMLProperty):
