From: richard Date: Mon, 30 Jul 2001 02:37:34 +0000 (+0000) Subject: Temporary measure until we have decent schema migration... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0552fce86a9f919ba2a6bae42243b03af38f0511;p=roundup.git 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 --- 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)