Skip to content

Commit 406edb3

Browse files
author
Richard Jones
committed
Handles new node display now.
1 parent 396bddf commit 406edb3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roundup/htmltemplate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $
22

33
import os, re, StringIO, urllib, cgi, errno
44

@@ -321,6 +321,9 @@ class History(Base):
321321
''' list the history of the item
322322
'''
323323
def __call__(self, **args):
324+
if self.nodeid is None:
325+
return "[History: node doesn't exist]"
326+
324327
l = ['<table width=100% border=0 cellspacing=0 cellpadding=2>',
325328
'<tr class="list-header">',
326329
'<td><span class="list-item"><strong>Date</strong></span></td>',
@@ -709,6 +712,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile(
709712

710713
#
711714
# $Log: not supported by cvs2svn $
715+
# Revision 1.11 2001/07/29 09:31:35 richard
716+
# oops
717+
#
712718
# Revision 1.10 2001/07/29 09:28:23 richard
713719
# Fixed sorting by clicking on column headings.
714720
#

0 commit comments

Comments
 (0)