From: richard Date: Mon, 30 Jul 2001 01:26:59 +0000 (+0000) Subject: Big changes: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8abb3ea4669ed3e22a45c42f91784b30ff4e251b;p=roundup.git Big changes: . split off the support priority into its own class . added "new support, new user" to the page head . fixed the display options for the heading links git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@150 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/templates/extended/dbinit.py b/roundup/templates/extended/dbinit.py index 905d83b..f870b49 100644 --- a/roundup/templates/extended/dbinit.py +++ b/roundup/templates/extended/dbinit.py @@ -1,4 +1,4 @@ -# $Id: dbinit.py,v 1.7 2001-07-29 07:01:39 richard Exp $ +# $Id: dbinit.py,v 1.8 2001-07-30 01:26:59 richard Exp $ import os @@ -78,13 +78,18 @@ def open(name=None): date=Date(), time=String(), performedby=Link("user"), description=String()) + support = IssueClass(db, "support", + assignedto=Link("user"), status=Link("status"), + rate=Link("rate"), source=Link("source"), + product=Link("product"), platform=Multilink("platform"), + version=String(), timelog=Multilink("timelog"), + customername=String()) + issue = IssueClass(db, "issue", assignedto=Link("user"), priority=Link("priority"), - status=Link("status"), rate=Link("rate"), - source=Link("source"), product=Link("product"), + status=Link("status"), product=Link("product"), platform=Multilink("platform"), version=String(), - timelog=Multilink("timelog"), customername=String()) - issue.setkey('title') + supportcall=Multilink("support")) import detectors detectors.init(db) @@ -109,7 +114,6 @@ def init(adminpw): pri.create(name="bug", order="2") pri.create(name="usability", order="3") pri.create(name="feature", order="4") - pri.create(name="support", order="5") stat = db.getclass('status') stat.create(name="unread", order="1") @@ -151,6 +155,9 @@ def init(adminpw): # # $Log: not supported by cvs2svn $ +# 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 :) +# # Revision 1.6 2001/07/25 01:23:07 richard # Added the Roundup spec to the new documentation directory. # diff --git a/roundup/templates/extended/html/issue.filter b/roundup/templates/extended/html/issue.filter index 4a05d0b..e4ade85 100644 --- a/roundup/templates/extended/html/issue.filter +++ b/roundup/templates/extended/html/issue.filter @@ -1,4 +1,4 @@ - + Title @@ -23,15 +23,7 @@ Version - - Source - - Assigned to - - Customer name - - diff --git a/roundup/templates/extended/html/issue.index b/roundup/templates/extended/html/issue.index index ea00a36..0109620 100644 --- a/roundup/templates/extended/html/issue.index +++ b/roundup/templates/extended/html/issue.index @@ -1,5 +1,8 @@ - + + + + @@ -21,13 +24,7 @@ - - - - - - diff --git a/roundup/templates/extended/html/issue.item b/roundup/templates/extended/html/issue.item index d971da2..eb4cb65 100644 --- a/roundup/templates/extended/html/issue.item +++ b/roundup/templates/extended/html/issue.item @@ -1,4 +1,4 @@ - + @@ -29,22 +29,15 @@ - - - - - - - - - + + diff --git a/roundup/templates/extended/htmlbase.py b/roundup/templates/extended/htmlbase.py index 022fd31..0db6bd6 100644 --- a/roundup/templates/extended/htmlbase.py +++ b/roundup/templates/extended/htmlbase.py @@ -2,7 +2,7 @@ # Do Not Edit (Unless You Want To) # This file automagically generated by roundup.htmldata.makeHtmlBase # -fileDOTindex = """ +fileDOTindex = """ @@ -13,7 +13,7 @@ fileDOTindex = """ +issueDOTfilter = """ @@ -38,22 +38,17 @@ issueDOTfilter = """ +issueDOTindex = """ + + + @@ -75,19 +70,13 @@ issueDOTindex = """ +issueDOTitem = """
Priority Source
Status Rate
Assigned To Customer NameEmptyXXXX
Title
@@ -118,22 +107,15 @@ issueDOTitem = """ +msgDOTindex = """ @@ -189,7 +171,7 @@ msgDOTindex = """ +msgDOTitem = """
@@ -393,7 +375,165 @@ th { } """ -userDOTindex = """ +supportDOTfilter = """ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +""" + +supportDOTindex = """ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +""" + +supportDOTitem = """ +
Title
Status
Platform
Product
Version
Source
Assigned to
Customer name
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Item Information
Title
Product + version:Platform
Created + ()Last activity
EmptyXXXXSource
StatusRate
Assigned ToCustomer Name
SupersederNosy List
Change Note
 
Messages
Files
+ +""" + +userDOTindex = """ @@ -413,7 +553,7 @@ userDOTindex = """ +userDOTitem = """ diff --git a/roundup/templates/extended/interfaces.py b/roundup/templates/extended/interfaces.py index c093c66..0362497 100644 --- a/roundup/templates/extended/interfaces.py +++ b/roundup/templates/extended/interfaces.py @@ -1,6 +1,6 @@ -# $Id: interfaces.py,v 1.2 2001-07-29 07:01:39 richard Exp $ +# $Id: interfaces.py,v 1.3 2001-07-30 01:26:59 richard Exp $ -import instance_config +import instance_config, urlparse, os from roundup import cgi_client, mailgw class Client(cgi_client.Client): @@ -8,7 +8,52 @@ class Client(cgi_client.Client): with any specific extensions ''' TEMPLATES = instance_config.TEMPLATES - pass + showsupport = cgi_client.Client.showitem + newsupport = cgi_client.Client.newissue + + default_index_sort = ['-activity'] + default_index_group = ['priority'] + default_index_filter = [] + default_index_columns = ['activity','status','title','assignedto'] + default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']} + + def pagehead(self, title, message=None): + url = self.env['SCRIPT_NAME'] + '/' #self.env.get('PATH_INFO', '/') + machine = self.env['SERVER_NAME'] + port = self.env['SERVER_PORT'] + if port != '80': machine = machine + ':' + port + base = urlparse.urlunparse(('http', machine, url, None, None, None)) + if message is not None: + message = '
%s
'%message + else: + 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 + + + +%s +
+ + + + + +
%s%s
All issues | +Bugs | +Wishlist | +Support | +New Issue | +New Support | +New User +%sYour Details
+'''%(title, style, message, title, self.user, extras, userid)) class MailGW(mailgw.MailGW): ''' derives basic mail gateway implementation from the standard module, @@ -20,6 +65,9 @@ class MailGW(mailgw.MailGW): # # $Log: not supported by cvs2svn $ +# Revision 1.2 2001/07/29 07:01:39 richard +# Added vim command to all source so that we don't get no steenkin' tabs :) +# # Revision 1.1 2001/07/23 23:16:01 richard # Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff. #