comparison roundup/htmltemplate.py @ 558:e4c8f0657c74

oops
author Richard Jones <richard@users.sourceforge.net>
date Mon, 21 Jan 2002 03:25:59 +0000
parents 50359de2800b
children 0f58d6a35a8b
comparison
equal deleted inserted replaced
557:dfac856502d1 558:e4c8f0657c74
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: htmltemplate.py,v 1.63 2002-01-21 02:59:10 richard Exp $ 18 # $Id: htmltemplate.py,v 1.64 2002-01-21 03:25:59 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Template engine. 21 Template engine.
22 """ 22 """
23 23
536 exists</strike>''') 536 exists</strike>''')
537 cell.append(' <strike>%s</strike>,\n'%label) 537 cell.append(' <strike>%s</strike>,\n'%label)
538 # "flag" this is done .... euwww 538 # "flag" this is done .... euwww
539 label = None 539 label = None
540 if label is not None: 540 if label is not None:
541 cell.append('%s: <a href="%s%s">%s</a>\n'%( 541 cell.append('%s: <a href="%s%s">%s</a>\n'%(k,
542 classname, classname, args[k], label)) 542 classname, args[k], label))
543 543
544 elif isinstance(prop, hyperdb.Date) and args[k]: 544 elif isinstance(prop, hyperdb.Date) and args[k]:
545 d = date.Date(args[k]) 545 d = date.Date(args[k])
546 cell.append('%s: %s'%(k, str(d))) 546 cell.append('%s: %s'%(k, str(d)))
547 547
1000 w(replace.go(s)) 1000 w(replace.go(s))
1001 w('</form>') 1001 w('</form>')
1002 1002
1003 # 1003 #
1004 # $Log: not supported by cvs2svn $ 1004 # $Log: not supported by cvs2svn $
1005 # Revision 1.63 2002/01/21 02:59:10 richard
1006 # Fixed up the HTML display of history so valid links are actually displayed.
1007 # Oh for some unit tests! :(
1008 #
1005 # Revision 1.62 2002/01/18 08:36:12 grubert 1009 # Revision 1.62 2002/01/18 08:36:12 grubert
1006 # . add nowrap to history table date cell i.e. <td nowrap ... 1010 # . add nowrap to history table date cell i.e. <td nowrap ...
1007 # 1011 #
1008 # Revision 1.61 2002/01/17 23:04:53 richard 1012 # Revision 1.61 2002/01/17 23:04:53 richard
1009 # . much nicer history display (actualy real handling of property types etc) 1013 # . much nicer history display (actualy real handling of property types etc)

Roundup Issue Tracker: http://roundup-tracker.org/