From: richard Date: Mon, 30 Jul 2001 01:25:07 +0000 (+0000) Subject: Default implementation is now "classic" rather than "extended" as one would X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7585df8dd9c10e79a99d3e40d1fd6d5dd48c0d35;p=roundup.git Default implementation is now "classic" rather than "extended" as one would expect. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@148 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 1c00040..8e75066 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -1,4 +1,4 @@ -# $Id: cgi_client.py,v 1.8 2001-07-29 08:27:40 richard Exp $ +# $Id: cgi_client.py,v 1.9 2001-07-30 01:25:07 richard Exp $ import os, cgi, pprint, StringIO, urlparse, re, traceback @@ -41,10 +41,6 @@ class Client: message = '' style = open(os.path.join(self.TEMPLATES, 'style.css')).read() userid = self.db.user.lookup(self.user) - if self.user == 'admin': - extras = ' | Class List' - else: - extras = '' self.write(''' %s @@ -52,18 +48,10 @@ class Client: %s - - - - - +
%s%s
All issues | -Bugs | -Support | -Wishlist | -New Issue -%sYour Details
%s +(login: %s)
-'''%(title, style, message, title, self.user, extras, userid)) +'''%(title, style, message, title, userid, self.user)) def pagefoot(self): if self.debug: @@ -131,7 +119,7 @@ class Client: default_index_sort = ['-activity'] default_index_group = ['priority'] default_index_filter = [] - default_index_columns = ['activity','status','title'] + default_index_columns = ['id','activity','title','status','assignedto'] default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']} def index(self): ''' put up an index @@ -402,7 +390,9 @@ class Client: m.append('%s: %s'%(name, value)) # handle the note - note = self.form.get('__note', None) + note = None + if self.form.has_key('__note'): + note = self.form['__note'] if note and note.value: note = note.value if '\n' in note: @@ -433,6 +423,7 @@ class Client: htmltemplate.newitem(self, self.TEMPLATES, self.db, self.classname, self.form) self.pagefoot() + newuser = newissue def showuser(self, message=None): ''' display an item @@ -503,6 +494,10 @@ class Client: # # $Log: not supported by cvs2svn $ +# Revision 1.8 2001/07/29 08:27:40 richard +# Fixed handling of passed-in values in form elements (ie. during a +# drill-down) +# # Revision 1.7 2001/07/29 07:01:39 richard # Added vim command to all source so that we don't get no steenkin' tabs :) #