From 78cd4309cf7ef5b9fb5674114aa620d66c8bd7c6 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 17 Mar 2002 23:06:05 +0000 Subject: [PATCH] oops git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@676 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index e6a69c2..f466e7d 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.113 2002-03-14 23:59:24 richard Exp $ +# $Id: cgi_client.py,v 1.114 2002-03-17 23:06:05 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -338,13 +338,14 @@ function help_window(helpurl, width, height) { break if defaults: # try the instance config first - if hasattr(self.instance, 'DEFAULT_INDEX_CLASS'): - self.classname = self.instance.DEFAULT_INDEX_CLASS - sort = self.instance.DEFAULT_INDEX_SORT - group = self.instance.DEFAULT_INDEX_GROUP - filter = self.instance.DEFAULT_INDEX_FILTER - columns = self.instance.DEFAULT_INDEX_COLUMNS - filterspec = self.instance.DEFAULT_INDEX_FILTERSPEC + if hasattr(self.instance, 'DEFAULT_INDEX'): + d = self.instance.DEFAULT_INDEX + self.classname = d['CLASS'] + sort = d['SORT'] + group = d['GROUP'] + filter = d['FILTER'] + columns = d['COLUMNS'] + filterspec = d['FILTERSPEC'] else: # nope - fall back on the old way of doing it @@ -1356,6 +1357,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.113 2002/03/14 23:59:24 richard +# . #517734 ] web header customisation is obscure +# # Revision 1.112 2002/03/12 22:52:26 richard # more pychecker warnings removed # -- 2.30.2