From 0552fce86a9f919ba2a6bae42243b03af38f0511 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 30 Jul 2001 02:37:34 +0000 Subject: [PATCH] Temporary measure until we have decent schema migration... git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@160 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 8e75066..f6178d4 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -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 @@ class Client: 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 @@ class Client: # # $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) -- 2.30.2