Skip to content

Commit 21a5381

Browse files
author
Richard Jones
committed
Temporary measure until we have decent schema migration.
1 parent 8a0c72f commit 21a5381

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

roundup/htmltemplate.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: htmltemplate.py,v 1.12 2001-07-30 01:24:33 richard Exp $
1+
# $Id: htmltemplate.py,v 1.13 2001-07-30 02:37:53 richard Exp $
22

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

@@ -62,7 +62,12 @@ def __call__(self, property, size=None, height=None, showid=0):
6262
return '[Field: not called from item]'
6363
propclass = self.properties[property]
6464
if self.nodeid:
65-
value = self.cl.get(self.nodeid, property)
65+
value = self.cl.get(self.nodeid, property, None)
66+
# TODO: remove this from the code ... it's only here for
67+
# handling schema changes, and they should be handled outside
68+
# of this code...
69+
if propclass.isMultilinkType and value is None:
70+
value = []
6671
elif self.filterspec is not None:
6772
if propclass.isMultilinkType:
6873
value = self.filterspec.get(property, [])
@@ -712,6 +717,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile(
712717

713718
#
714719
# $Log: not supported by cvs2svn $
720+
# Revision 1.12 2001/07/30 01:24:33 richard
721+
# Handles new node display now.
722+
#
715723
# Revision 1.11 2001/07/29 09:31:35 richard
716724
# oops
717725
#

0 commit comments

Comments
 (0)