1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: cgi_client.py,v 1.139 2002-07-14 06:14:40 richard Exp $
18+ # $Id: cgi_client.py,v 1.140 2002-07-14 23:17:15 richard Exp $
1919
2020__doc__ = """
2121WWW request handler (also used in the stand-alone server).
@@ -391,12 +391,14 @@ def customization_widget(self):
391391
392392 def _get_customisation_info (self ):
393393 # see if the web has supplied us with any customisation info
394- defaults = 1
395394 for key in ':sort' , ':group' , ':filter' , ':columns' , ':pagesize' :
396395 if self .form .has_key (key ):
397- defaults = 0
396+ # make list() extract the info from the CGI environ
397+ self .classname = 'issue'
398+ sort = group = filter = columns = filterspec = pagesize = None
398399 break
399- if defaults :
400+ else :
401+ # TODO: look up the session first
400402 # try the instance config first
401403 if hasattr (self .instance , 'DEFAULT_INDEX' ):
402404 d = self .instance .DEFAULT_INDEX
@@ -416,10 +418,6 @@ def _get_customisation_info(self):
416418 columns = self .default_index_columns
417419 filterspec = self .default_index_filterspec
418420 pagesize = self .default_pagesize
419- else :
420- # make list() extract the info from the CGI environ
421- self .classname = 'issue'
422- sort = group = filter = columns = filterspec = pagesize = None
423421 return columns , filter , group , sort , filterspec , pagesize
424422
425423 def index (self ):
@@ -1499,6 +1497,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
14991497
15001498#
15011499# $Log: not supported by cvs2svn $
1500+ # Revision 1.139 2002/07/14 06:14:40 richard
1501+ # Some more TODOs
1502+ #
15021503# Revision 1.138 2002/07/14 04:03:13 richard
15031504# Implemented a switch to disable journalling for a Class. CGI session
15041505# database now uses it.
0 commit comments