summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53e22cb)
raw | patch | inline | side by side (parent: 53e22cb)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 04:04:00 +0000 (04:04 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 04:04:00 +0000 (04:04 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@123 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 9e635244ad020cbee3cb144cda28572b89427e18..42c9d76bfa2a4d42b8cee2ee8c9d3cbaca3108ed 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
-# $Id: cgi_client.py,v 1.5 2001-07-28 08:16:52 richard Exp $
+# $Id: cgi_client.py,v 1.6 2001-07-29 04:04:00 richard Exp $
import os, cgi, pprint, StringIO, urlparse, re, traceback
filterspec[key] = l
return filterspec
+
+ default_index_sort = ['-activity']
+ default_index_group = ['priority']
+ default_index_filter = []
+ default_index_columns = ['activity','status','title']
+ default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']}
def index(self):
''' put up an index
'''
self.classname = 'issue'
if self.form.has_key(':sort'): sort = self.index_arg(':sort')
- else: sort=['-activity']
+ else: sort = self.default_index_sort
if self.form.has_key(':group'): group = self.index_arg(':group')
- else: group=['priority']
+ else: group = self.default_index_group
if self.form.has_key(':filter'): filter = self.index_arg(':filter')
- else: filter = []
+ else: filter = self.default_index_filter
if self.form.has_key(':columns'): columns = self.index_arg(':columns')
- else: columns=['activity','status','title']
+ else: columns = self.default_index_columns
filterspec = self.index_filterspec()
if not filterspec:
- filterspec['status'] = ['1', '2', '3', '4', '5', '6', '7']
+ filterspec = self.default_index_filterspec
return self.list(columns=columns, filter=filter, group=group,
sort=sort, filterspec=filterspec)
'''
cn = self.classname
- self.pagehead('Index: %s'%cn)
+ self.pagehead('Index of %s'%cn)
if sort is None: sort = self.index_arg(':sort')
if group is None: group = self.index_arg(':group')
if filter is None: filter = self.index_arg(':filter')
#
# $Log: not supported by cvs2svn $
+# Revision 1.5 2001/07/28 08:16:52 richard
+# New issue form handles lack of note better now.
+#
# Revision 1.4 2001/07/28 00:34:34 richard
# Fixed some non-string node ids.
#