summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7662d39)
raw | patch | inline | side by side (parent: 7662d39)
author | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 17 Jan 2002 07:58:24 +0000 (07:58 +0000) | ||
committer | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 17 Jan 2002 07:58:24 +0000 (07:58 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@559 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/htmltemplate.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index e17ddeb99a0a41e148ecd22bcf077a8712518c25..787803d2752a955e0d6af0659cbe188a88f22c76 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
2002-01-?? - 0.4.0??
. handle attachments with no name (eg tnef)
-
+ . display links a html link in history.
2002-01-16 - 0.4.0b2
Fixed:
index c58ef4e38deb7054e8f0bfe9d2ef8753776ee713..33213ae3be3d6c5ca716271bf8d6db3f69b7e829 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.58 2002-01-15 00:50:03 richard Exp $
+# $Id: htmltemplate.py,v 1.59 2002-01-17 07:58:24 grubert Exp $
__doc__ = """
Template engine.
if value is None: value = ''
else: value = _('*encrypted*')
elif isinstance(propclass, hyperdb.Date):
+ # this gives "2002-01-17.06:54:39", maybe replace the "." by a " ".
value = str(value)
elif isinstance(propclass, hyperdb.Interval):
value = str(value)
for id, date, user, action, args in self.cl.history(self.nodeid):
date_s = str(date).replace("."," ")
+ arg_s = ""
+ if action=='link' and type(args)==type(()):
+ if len(args) == 3:
+ arg_s += '<a href="%s%s">%s%s %s</a>'% (args[0],args[1],args[0],args[1],args[2])
+ else:
+ arg_s = str(arg)
+ elif type(args)==type({}):
+ for k in args.keys():
+ # special treatment of date, maybe links to files, authors, recipient ?
+ arg_s += '%s: %s,'%(k,str(args[k]))
+ else:
+ arg_s = str(args)
+ # shouldnt _() be used ?
l.append('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>'%(
- date_s, user, action, args))
+ date_s, user, action, arg_s))
l.append('</table>')
return '\n'.join(l)
#
# $Log: not supported by cvs2svn $
+# Revision 1.58 2002/01/15 00:50:03 richard
+# #502949 ] index view for non-issues and redisplay
+#
# Revision 1.57 2002/01/14 23:31:21 richard
# reverted the change that had plain() hyperlinking the link displays -
# that's what link() is for!