Skip to content

Commit 8a0c72f

Browse files
author
Richard Jones
committed
Temporary measure until we have decent schema migration...
1 parent 86c8d6a commit 8a0c72f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

roundup/cgi_client.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: cgi_client.py,v 1.9 2001-07-30 01:25:07 richard Exp $
1+
# $Id: cgi_client.py,v 1.10 2001-07-30 02:37:34 richard Exp $
22

33
import os, cgi, pprint, StringIO, urlparse, re, traceback
44

@@ -235,7 +235,12 @@ def showitem(self, message=None):
235235
nid = self.nodeid
236236
m = []
237237
for name, prop in cl.getprops().items():
238-
value = cl.get(nid, name)
238+
# TODO: the None default is only here because we
239+
# don't have schema migration :(
240+
if prop.isMultilinkType:
241+
value = cl.get(nid, name, [])
242+
else:
243+
value = cl.get(nid, name, None)
239244
if prop.isLinkType:
240245
link = self.db.classes[prop.classname]
241246
key = link.getkey()
@@ -494,6 +499,10 @@ def __del__(self):
494499

495500
#
496501
# $Log: not supported by cvs2svn $
502+
# Revision 1.9 2001/07/30 01:25:07 richard
503+
# Default implementation is now "classic" rather than "extended" as one would
504+
# expect.
505+
#
497506
# Revision 1.8 2001/07/29 08:27:40 richard
498507
# Fixed handling of passed-in values in form elements (ie. during a
499508
# drill-down)

0 commit comments

Comments
 (0)