Skip to content

Commit d45538a

Browse files
author
Richard Jones
committed
Default implementation is now "classic"...
...rather than "extended" as one would expect.
1 parent 406edb3 commit d45538a

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

roundup/cgi_client.py

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: cgi_client.py,v 1.8 2001-07-29 08:27:40 richard Exp $
1+
# $Id: cgi_client.py,v 1.9 2001-07-30 01:25:07 richard Exp $
22

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

@@ -41,29 +41,17 @@ def pagehead(self, title, message=None):
4141
message = ''
4242
style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
4343
userid = self.db.user.lookup(self.user)
44-
if self.user == 'admin':
45-
extras = ' | <a href="list_classes">Class List</a>'
46-
else:
47-
extras = ''
4844
self.write('''<html><head>
4945
<title>%s</title>
5046
<style type="text/css">%s</style>
5147
</head>
5248
<body bgcolor=#ffffff>
5349
%s
5450
<table width=100%% border=0 cellspacing=0 cellpadding=2>
55-
<tr class="location-bar"><td><big><strong>%s</strong></big></td>
56-
<td align=right valign=bottom>%s</td></tr>
57-
<tr class="location-bar">
58-
<td align=left><a href="issue?status=unread,deferred,chatting,need-eg,in-progress,testing,done-cbb&:sort=activity&:columns=activity,status,title&:group=priority">All issues</a> |
59-
<a href="issue?priority=fatal-bug,bug">Bugs</a> |
60-
<a href="issue?priority=usability">Support</a> |
61-
<a href="issue?priority=feature">Wishlist</a> |
62-
<a href="newissue">New Issue</a>
63-
%s</td>
64-
<td align=right><a href="user%s">Your Details</a></td>
51+
<tr class="location-bar"><td><big><strong>%s</strong></big>
52+
(login: <a href="user%s">%s</a>)</td></tr>
6553
</table>
66-
'''%(title, style, message, title, self.user, extras, userid))
54+
'''%(title, style, message, title, userid, self.user))
6755

6856
def pagefoot(self):
6957
if self.debug:
@@ -131,7 +119,7 @@ def index_filterspec(self):
131119
default_index_sort = ['-activity']
132120
default_index_group = ['priority']
133121
default_index_filter = []
134-
default_index_columns = ['activity','status','title']
122+
default_index_columns = ['id','activity','title','status','assignedto']
135123
default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']}
136124
def index(self):
137125
''' put up an index
@@ -402,7 +390,9 @@ def newissue(self, message=None):
402390
m.append('%s: %s'%(name, value))
403391

404392
# handle the note
405-
note = self.form.get('__note', None)
393+
note = None
394+
if self.form.has_key('__note'):
395+
note = self.form['__note']
406396
if note and note.value:
407397
note = note.value
408398
if '\n' in note:
@@ -433,6 +423,7 @@ def newissue(self, message=None):
433423
htmltemplate.newitem(self, self.TEMPLATES, self.db, self.classname,
434424
self.form)
435425
self.pagefoot()
426+
newuser = newissue
436427

437428
def showuser(self, message=None):
438429
''' display an item
@@ -503,6 +494,10 @@ def __del__(self):
503494

504495
#
505496
# $Log: not supported by cvs2svn $
497+
# Revision 1.8 2001/07/29 08:27:40 richard
498+
# Fixed handling of passed-in values in form elements (ie. during a
499+
# drill-down)
500+
#
506501
# Revision 1.7 2001/07/29 07:01:39 richard
507502
# Added vim command to all source so that we don't get no steenkin' tabs :)
508503
#

0 commit comments

Comments
 (0)