comparison roundup/htmltemplate.py @ 141:5e8da9d010bd

Handles new node display now.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 01:24:33 +0000
parents b4aa4ba1993a
children 03bdef2d645b
comparison
equal deleted inserted replaced
140:a4383d62a407 141:5e8da9d010bd
1 # $Id: htmltemplate.py,v 1.11 2001-07-29 09:31:35 richard Exp $ 1 # $Id: htmltemplate.py,v 1.12 2001-07-30 01:24:33 richard Exp $
2 2
3 import os, re, StringIO, urllib, cgi, errno 3 import os, re, StringIO, urllib, cgi, errno
4 4
5 import hyperdb, date 5 import hyperdb, date
6 6
319 # XXX new function 319 # XXX new function
320 class History(Base): 320 class History(Base):
321 ''' list the history of the item 321 ''' list the history of the item
322 ''' 322 '''
323 def __call__(self, **args): 323 def __call__(self, **args):
324 if self.nodeid is None:
325 return "[History: node doesn't exist]"
326
324 l = ['<table width=100% border=0 cellspacing=0 cellpadding=2>', 327 l = ['<table width=100% border=0 cellspacing=0 cellpadding=2>',
325 '<tr class="list-header">', 328 '<tr class="list-header">',
326 '<td><span class="list-item"><strong>Date</strong></span></td>', 329 '<td><span class="list-item"><strong>Date</strong></span></td>',
327 '<td><span class="list-item"><strong>User</strong></span></td>', 330 '<td><span class="list-item"><strong>User</strong></span></td>',
328 '<td><span class="list-item"><strong>Action</strong></span></td>', 331 '<td><span class="list-item"><strong>Action</strong></span></td>',
707 w(replace.go(s)) 710 w(replace.go(s))
708 w('</form>') 711 w('</form>')
709 712
710 # 713 #
711 # $Log: not supported by cvs2svn $ 714 # $Log: not supported by cvs2svn $
715 # Revision 1.11 2001/07/29 09:31:35 richard
716 # oops
717 #
712 # Revision 1.10 2001/07/29 09:28:23 richard 718 # Revision 1.10 2001/07/29 09:28:23 richard
713 # Fixed sorting by clicking on column headings. 719 # Fixed sorting by clicking on column headings.
714 # 720 #
715 # Revision 1.9 2001/07/29 08:27:40 richard 721 # Revision 1.9 2001/07/29 08:27:40 richard
716 # Fixed handling of passed-in values in form elements (ie. during a 722 # Fixed handling of passed-in values in form elements (ie. during a

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