changeset 154:4fb5f59d8627

Temporary measure until we have decent schema migration...
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 02:37:34 +0000
parents b07b9a5b6aa9
children 03bdef2d645b
files roundup/cgi_client.py
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi_client.py	Mon Jul 30 02:37:07 2001 +0000
+++ b/roundup/cgi_client.py	Mon Jul 30 02:37:34 2001 +0000
@@ -1,4 +1,4 @@
-# $Id: cgi_client.py,v 1.9 2001-07-30 01:25:07 richard Exp $
+# $Id: cgi_client.py,v 1.10 2001-07-30 02:37:34 richard Exp $
 
 import os, cgi, pprint, StringIO, urlparse, re, traceback
 
@@ -235,7 +235,12 @@
                     nid = self.nodeid
                     m = []
                     for name, prop in cl.getprops().items():
-                        value = cl.get(nid, name)
+                        # TODO: the None default is only here because we
+                        # don't have schema migration :(
+                        if prop.isMultilinkType:
+                            value = cl.get(nid, name, [])
+                        else:
+                            value = cl.get(nid, name, None)
                         if prop.isLinkType:
                             link = self.db.classes[prop.classname]
                             key = link.getkey()
@@ -494,6 +499,10 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.9  2001/07/30 01:25:07  richard
+# Default implementation is now "classic" rather than "extended" as one would
+# expect.
+#
 # Revision 1.8  2001/07/29 08:27:40  richard
 # Fixed handling of passed-in values in form elements (ie. during a
 # drill-down)

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