Mercurial > p > roundup > code
diff roundup/cgi_client.py @ 866:d122204996cc
cleaned up structure
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 14 Jul 2002 23:17:15 +0000 |
| parents | 76c6db876c14 |
| children | bd6211d39328 |
line wrap: on
line diff
--- a/roundup/cgi_client.py Sun Jul 14 23:16:52 2002 +0000 +++ b/roundup/cgi_client.py Sun Jul 14 23:17:15 2002 +0000 @@ -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.139 2002-07-14 06:14:40 richard Exp $ +# $Id: cgi_client.py,v 1.140 2002-07-14 23:17:15 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -391,12 +391,14 @@ def _get_customisation_info(self): # see if the web has supplied us with any customisation info - defaults = 1 for key in ':sort', ':group', ':filter', ':columns', ':pagesize': if self.form.has_key(key): - defaults = 0 + # make list() extract the info from the CGI environ + self.classname = 'issue' + sort = group = filter = columns = filterspec = pagesize = None break - if defaults: + else: + # TODO: look up the session first # try the instance config first if hasattr(self.instance, 'DEFAULT_INDEX'): d = self.instance.DEFAULT_INDEX @@ -416,10 +418,6 @@ columns = self.default_index_columns filterspec = self.default_index_filterspec pagesize = self.default_pagesize - else: - # make list() extract the info from the CGI environ - self.classname = 'issue' - sort = group = filter = columns = filterspec = pagesize = None return columns, filter, group, sort, filterspec, pagesize def index(self): @@ -1499,6 +1497,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.139 2002/07/14 06:14:40 richard +# Some more TODOs +# # Revision 1.138 2002/07/14 04:03:13 richard # Implemented a switch to disable journalling for a Class. CGI session # database now uses it.
