Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 733:65234f56b250
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
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 22 May 2002 00:32:34 +0000 |
| parents | f333f6decdc2 |
| children | 3cdfa5d86cec |
comparison
equal
deleted
inserted
replaced
| 732:5dc8af6132f0 | 733:65234f56b250 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: __init__.py,v 1.11 2002-02-16 08:39:42 richard Exp $ | 18 # $Id: __init__.py,v 1.12 2002-05-22 00:32:33 richard Exp $ |
| 19 | 19 |
| 20 __all__ = [] | 20 __all__ = [] |
| 21 | 21 |
| 22 try: | 22 try: |
| 23 import sys | 23 import sys, anydbm |
| 24 if not hasattr(sys, 'version_info') or sys.version_info < (2,1,2): | 24 if not hasattr(sys, 'version_info') or sys.version_info < (2,1,2): |
| 25 import anydbm, dumbdbm | 25 import dumbdbm |
| 26 # dumbdbm only works in python 2.1.2+ | 26 # dumbdbm only works in python 2.1.2+ |
| 27 assert anydbm._defaultmod != dumbdbm | 27 assert anydbm._defaultmod != dumbdbm |
| 28 del anydbm | 28 del anydbm |
| 29 del dumbdbm | 29 del dumbdbm |
| 30 except AssertionError: | |
| 31 print "WARNING: you should upgrade to python 2.1.3" | |
| 32 except ImportError, message: | |
| 33 if str(message) != 'No module named anydbm': raise | |
| 34 else: | |
| 30 import back_anydbm | 35 import back_anydbm |
| 31 anydbm = back_anydbm | 36 anydbm = back_anydbm |
| 32 __all__.append('anydbm') | 37 __all__.append('anydbm') |
| 33 except AssertionError: | |
| 34 pass | |
| 35 except ImportError: | |
| 36 pass | |
| 37 | 38 |
| 38 try: | 39 try: |
| 40 import bsddb | |
| 41 except ImportError, message: | |
| 42 if str(message) != 'No module named bsddb': raise | |
| 43 else: | |
| 39 import back_bsddb | 44 import back_bsddb |
| 40 bsddb = back_bsddb | 45 bsddb = back_bsddb |
| 41 __all__.append('bsddb') | 46 __all__.append('bsddb') |
| 42 except ImportError: | |
| 43 pass | |
| 44 | 47 |
| 45 try: | 48 try: |
| 49 import bsddb3 | |
| 50 except ImportError, message: | |
| 51 if str(message) != 'No module named bsddb3': raise | |
| 52 else: | |
| 46 import back_bsddb3 | 53 import back_bsddb3 |
| 47 bsddb3 = back_bsddb3 | 54 bsddb3 = back_bsddb3 |
| 48 __all__.append('bsddb3') | 55 __all__.append('bsddb3') |
| 49 except ImportError: | |
| 50 pass | |
| 51 | 56 |
| 52 # | 57 # |
| 53 # $Log: not supported by cvs2svn $ | 58 # $Log: not supported by cvs2svn $ |
| 59 # Revision 1.11 2002/02/16 08:39:42 richard | |
| 60 # . #516854 ] "My Issues" and redisplay | |
| 61 # | |
| 54 # Revision 1.10 2002/01/22 07:08:50 richard | 62 # Revision 1.10 2002/01/22 07:08:50 richard |
| 55 # I was certain I'd already done this (there's even a change note in | 63 # I was certain I'd already done this (there's even a change note in |
| 56 # CHANGES)... | 64 # CHANGES)... |
| 57 # | 65 # |
| 58 # Revision 1.9 2001/12/12 02:30:51 richard | 66 # Revision 1.9 2001/12/12 02:30:51 richard |
