diff roundup/htmltemplate.py @ 155:03bdef2d645b

Temporary measure until we have decent schema migration.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 02:37:53 +0000
parents 5e8da9d010bd
children 717f12e6ccf2
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Mon Jul 30 02:37:34 2001 +0000
+++ b/roundup/htmltemplate.py	Mon Jul 30 02:37:53 2001 +0000
@@ -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 @@
             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 @@
 
 #
 # $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
 #

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