From 0f72a3c0fc0988a73e8c2a9093dadcbf3efca894 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 30 Jul 2001 02:37:53 +0000 Subject: [PATCH] Temporary measure until we have decent schema migration. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@161 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/htmltemplate.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py index 59b91cd..1356ed0 100644 --- a/roundup/htmltemplate.py +++ b/roundup/htmltemplate.py @@ -1,4 +1,4 @@ -# $Id: htmltemplate.py,v 1.12 2001-07-30 01:24:33 richard Exp $ +# $Id: htmltemplate.py,v 1.13 2001-07-30 02:37:53 richard Exp $ import os, re, StringIO, urllib, cgi, errno @@ -62,7 +62,12 @@ class Field(Base): return '[Field: not called from item]' propclass = self.properties[property] if self.nodeid: - value = self.cl.get(self.nodeid, property) + value = self.cl.get(self.nodeid, property, None) + # TODO: remove this from the code ... it's only here for + # handling schema changes, and they should be handled outside + # of this code... + if propclass.isMultilinkType and value is None: + value = [] elif self.filterspec is not None: if propclass.isMultilinkType: value = self.filterspec.get(property, []) @@ -712,6 +717,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile( # # $Log: not supported by cvs2svn $ +# Revision 1.12 2001/07/30 01:24:33 richard +# Handles new node display now. +# # Revision 1.11 2001/07/29 09:31:35 richard # oops # -- 2.30.2