From 06643f439392bd2ebbe2d4e6502f2d543180eee6 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 22 May 2002 00:32:34 +0000 Subject: [PATCH] . changed the default message list in issues to display the message body . made backends.__init__ be more specific about which ImportErrors it really wants to ignore . fixed the example addresses in the templates to use correct example domains . cleaned out the template stylesheets, removing a bunch of junk that really wasn't necessary (font specs, styles never used) and added a style for message content git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@746 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 8 +- roundup/backends/__init__.py | 30 ++++--- roundup/templates/classic/html/msg.index | 18 ++-- roundup/templates/classic/html/msg.item | 10 +-- roundup/templates/classic/html/style.css | 90 +++---------------- roundup/templates/classic/instance_config.py | 9 +- roundup/templates/extended/html/msg.index | 12 +-- roundup/templates/extended/html/msg.item | 4 +- roundup/templates/extended/html/style.css | 87 +++--------------- roundup/templates/extended/instance_config.py | 9 +- 10 files changed, 77 insertions(+), 200 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index c929c81..093b56f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -28,6 +28,7 @@ Feature: behaviour. Setting them to 'yes' will add the author/recipients to the nosy on messages that create issues and followup messages. . reverting to dates for intervals > 2 months sucks + . changed the default message list in issues to display the message body Fixed: . stop sending blank (whitespace-only) notes @@ -47,7 +48,12 @@ Fixed: . #449374 ] re-enable bsddb3 backend bsddb3 backend now works, reinstating . #551483 ] assignedto in Client.make_index_link - + . made backends.__init__ be more specific about which ImportErrors it really + wants to ignore + . fixed the example addresses in the templates to use correct example domains + . cleaned out the template stylesheets, removing a bunch of junk that really + wasn't necessary (font specs, styles never used) and added a style for + message content 2002-03-25 - 0.4.1 Feature: diff --git a/roundup/backends/__init__.py b/roundup/backends/__init__.py index 5bb5366..ee73759 100644 --- a/roundup/backends/__init__.py +++ b/roundup/backends/__init__.py @@ -15,42 +15,50 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.11 2002-02-16 08:39:42 richard Exp $ +# $Id: __init__.py,v 1.12 2002-05-22 00:32:33 richard Exp $ __all__ = [] try: - import sys + import sys, anydbm if not hasattr(sys, 'version_info') or sys.version_info < (2,1,2): - import anydbm, dumbdbm + import dumbdbm # dumbdbm only works in python 2.1.2+ assert anydbm._defaultmod != dumbdbm del anydbm del dumbdbm +except AssertionError: + print "WARNING: you should upgrade to python 2.1.3" +except ImportError, message: + if str(message) != 'No module named anydbm': raise +else: import back_anydbm anydbm = back_anydbm __all__.append('anydbm') -except AssertionError: - pass -except ImportError: - pass try: + import bsddb +except ImportError, message: + if str(message) != 'No module named bsddb': raise +else: import back_bsddb bsddb = back_bsddb __all__.append('bsddb') -except ImportError: - pass try: + import bsddb3 +except ImportError, message: + if str(message) != 'No module named bsddb3': raise +else: import back_bsddb3 bsddb3 = back_bsddb3 __all__.append('bsddb3') -except ImportError: - pass # # $Log: not supported by cvs2svn $ +# Revision 1.11 2002/02/16 08:39:42 richard +# . #516854 ] "My Issues" and redisplay +# # Revision 1.10 2002/01/22 07:08:50 richard # I was certain I'd already done this (there's even a change note in # CHANGES)... diff --git a/roundup/templates/classic/html/msg.index b/roundup/templates/classic/html/msg.index index b99556a..c4f691a 100644 --- a/roundup/templates/classic/html/msg.index +++ b/roundup/templates/classic/html/msg.index @@ -1,12 +1,8 @@ - - - - - - - - - - - + + + + + + +
diff --git a/roundup/templates/classic/html/msg.item b/roundup/templates/classic/html/msg.item index 676147b..aa5cc58 100644 --- a/roundup/templates/classic/html/msg.item +++ b/roundup/templates/classic/html/msg.item @@ -1,10 +1,6 @@ - + - - - - @@ -22,7 +18,7 @@ @@ -31,7 +27,7 @@ - +
Message Information
Author
-
+
History
History
diff --git a/roundup/templates/classic/html/style.css b/roundup/templates/classic/html/style.css index 07eace4..b496cab 100644 --- a/roundup/templates/classic/html/style.css +++ b/roundup/templates/classic/html/style.css @@ -1,21 +1,3 @@ -h1 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 18pt; - font-weight: bold; -} - -h2 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 16pt; - font-weight: bold; -} - -h3 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; - font-weight: bold; -} - a:hover { font-family: Verdana, Helvetica, sans-serif; text-decoration: underline; @@ -36,32 +18,17 @@ a { p { font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; color: #333333; } th { font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 10pt; color: #333333; } .form-help { font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.std-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.tab-small { - font-family: Verdana, Helvetica, sans-serif; - font-size: 8pt; color: #333333; } @@ -73,23 +40,13 @@ th { .strong-header { font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; font-weight: bold; background-color: #000000; color: #ffffff; } -.msg-header { - font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; - font-weight: bold; - background-color: #EE71AC; - color: #ffffff; -} - .file-header { font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; font-weight: bold; background-color: #41BE62; color: #ffffff; @@ -97,33 +54,14 @@ th { .history-header { font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; font-weight: bold; background-color: #739DEE; color: #ffffff; } -.list-header { - background-color: #aaccff; - color: #000000; - border: none; -} - -.list-item { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; -} - -.list-nav { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - font-weight: bold; -} - .row-normal { background-color: #ffffff; border: none; - } .row-hilite { @@ -171,15 +109,20 @@ th { border: none; } -.section-bar { - background-color: #707070; +.msg-header { + font-family: Verdana, Helvetica, sans-serif; + font-weight: bold; + background-color: #EE71AC; color: #ffffff; - border: 1px solid #404040; +} + +.msg-content { + font-family: monospace; + background-color: #ffeaff; + color: #000000; } .system-msg { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; background-color: #ffffff; border: 1px solid #000000; margin-bottom: 6px; @@ -190,41 +133,30 @@ th { } .form-title { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 12pt; color: #333333; } .form-label { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 10pt; color: #333333; } .form-optional { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; font-style: italic; - font-size: 10pt; color: #333333; } .form-element { - font-family: Verdana, Helvetica, aans-serif; - font-size: 10pt; color: #000000; } .form-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; color: #333333; } .form-mono { font-family: monospace; - font-size: 12px; - text-decoration: none; } + diff --git a/roundup/templates/classic/instance_config.py b/roundup/templates/classic/instance_config.py index 4629918..0a599ae 100644 --- a/roundup/templates/classic/instance_config.py +++ b/roundup/templates/classic/instance_config.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: instance_config.py,v 1.16 2002-05-21 06:05:54 richard Exp $ +# $Id: instance_config.py,v 1.17 2002-05-22 00:32:33 richard Exp $ MAIL_DOMAIN=MAILHOST=HTTP_HOST=None HTTP_PORT=0 @@ -36,7 +36,7 @@ if not MAILHOST: # The domain name used for email addresses. if not MAIL_DOMAIN: - MAIL_DOMAIN = 'fill.me.in.' + MAIL_DOMAIN = 'your.tracker.email.domain.example' # the next two are only used for the standalone HTTP server. if not HTTP_HOST: @@ -57,7 +57,7 @@ INSTANCE_NAME = 'Roundup issue tracker' ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN # The web address that the instance is viewable at -ISSUE_TRACKER_WEB = 'http://some.useful.url/' +ISSUE_TRACKER_WEB = 'http://your.tracker.url.example/' # The email address that roundup will complain to if it runs into trouble ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN @@ -162,6 +162,9 @@ USER_INDEX = { # # $Log: not supported by cvs2svn $ +# Revision 1.16 2002/05/21 06:05:54 richard +# . #551483 ] assignedto in Client.make_index_link +# # Revision 1.15 2002/05/02 07:56:34 richard # . added option to automatically add the authors and recipients of messages # to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and diff --git a/roundup/templates/extended/html/msg.index b/roundup/templates/extended/html/msg.index index 4331e27..a82fdd5 100644 --- a/roundup/templates/extended/html/msg.index +++ b/roundup/templates/extended/html/msg.index @@ -1,12 +1,8 @@ - + - - - - - - + + - +
diff --git a/roundup/templates/extended/html/msg.item b/roundup/templates/extended/html/msg.item index a5e739b..1963313 100644 --- a/roundup/templates/extended/html/msg.item +++ b/roundup/templates/extended/html/msg.item @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ diff --git a/roundup/templates/extended/html/style.css b/roundup/templates/extended/html/style.css index 2316c7c..95e8bd4 100644 --- a/roundup/templates/extended/html/style.css +++ b/roundup/templates/extended/html/style.css @@ -1,67 +1,28 @@ -h1 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 18pt; - font-weight: bold; -} - -h2 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 16pt; - font-weight: bold; -} - -h3 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; - font-weight: bold; -} - a:hover { - font-family: Verdana, Helvetica, sans-serif; text-decoration: underline; color: #333333; } a:link { - font-family: Verdana, Helvetica, sans-serif; text-decoration: none; color: #000099; } a { - font-family: Verdana, Helvetica, sans-serif; text-decoration: none; color: #000099; } p { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; color: #333333; } th { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 10pt; color: #333333; } .form-help { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.std-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.tab-small { - font-family: Verdana, Helvetica, sans-serif; - font-size: 8pt; color: #333333; } @@ -71,33 +32,14 @@ th { } .strong-header { - font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; font-weight: bold; background-color: #000000; color: #ffffff; } -.list-header { - background-color: #c0c0c0; - border: none; -} - -.list-item { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; -} - -.list-nav { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - font-weight: bold; -} - .row-normal { background-color: #ffffff; border: none; - } .row-hilite { @@ -105,14 +47,20 @@ th { border: none; } -.section-bar { - background-color: #c0c0c0; - border: none; +.msg-header { + font-family: Verdana, Helvetica, sans-serif; + font-weight: bold; + background-color: #EE71AC; + color: #ffffff; +} + +.msg-content { + font-family: monospace; + background-color: #ffeaff; + color: #000000; } .system-msg { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; background-color: #ffffff; border: 1px solid #000000; margin-bottom: 6px; @@ -123,41 +71,30 @@ th { } .form-title { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 12pt; color: #333333; } .form-label { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; - font-size: 10pt; color: #333333; } .form-optional { - font-family: Verdana, Helvetica, sans-serif; font-weight: bold; font-style: italic; - font-size: 10pt; color: #333333; } .form-element { - font-family: Verdana, Helvetica, aans-serif; - font-size: 10pt; color: #000000; } .form-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; color: #333333; } .form-mono { font-family: monospace; - font-size: 12px; - text-decoration: none; } + diff --git a/roundup/templates/extended/instance_config.py b/roundup/templates/extended/instance_config.py index 291d94a..b10c039 100644 --- a/roundup/templates/extended/instance_config.py +++ b/roundup/templates/extended/instance_config.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: instance_config.py,v 1.16 2002-05-21 06:05:54 richard Exp $ +# $Id: instance_config.py,v 1.17 2002-05-22 00:32:34 richard Exp $ MAIL_DOMAIN=MAILHOST=HTTP_HOST=None HTTP_PORT=0 @@ -36,7 +36,7 @@ if not MAILHOST: # The domain name used for email addresses. if not MAIL_DOMAIN: - MAIL_DOMAIN = 'fill.me.in.' + MAIL_DOMAIN = 'your.tracker.email.domain.example' # the next two are only used for the standalone HTTP server. if not HTTP_HOST: @@ -57,7 +57,7 @@ INSTANCE_NAME = 'Roundup issue tracker' ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN # The web address that the instance is viewable at -ISSUE_TRACKER_WEB = 'http://some.useful.url/' +ISSUE_TRACKER_WEB = 'http://your.tracker.url.example/' # The email address that roundup will complain to if it runs into trouble ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN @@ -199,6 +199,9 @@ MY_SUPPORT_INDEX = { # # $Log: not supported by cvs2svn $ +# Revision 1.16 2002/05/21 06:05:54 richard +# . #551483 ] assignedto in Client.make_index_link +# # Revision 1.15 2002/05/02 07:56:34 richard # . added option to automatically add the authors and recipients of messages # to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and -- 2.30.2
-
+