Code

ae43cc5c552ce42d13cfc887d0eefddf7546dcc4
[roundup.git] / roundup / templates / classic / instance_config.py
1 #
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
3 # This module is free software, and you may redistribute it and/or modify
4 # under the same terms as Python, so long as this copyright message and
5 # disclaimer are retained in their original form.
6 #
7 # IN NO EVENT SHALL THE BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
10 # POSSIBILITY OF SUCH DAMAGE.
11 #
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
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"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17
18 # $Id: instance_config.py,v 1.4 2001-08-07 00:15:51 richard Exp $
20 MAIL_DOMAIN=MAILHOST=HTTP_HOST=None
21 HTTP_PORT=0
23 try:
24     from localconfig import *
25 except ImportError:
26     localconfig = None
28 import os
30 # roundup home is this package's directory
31 INSTANCE_HOME=os.path.split(__file__)[0]
33 # The SMTP mail host that roundup will use to send mail
34 if not MAILHOST:
35     MAILHOST = 'localhost'
37 # The domain name used for email addresses.
38 if not MAIL_DOMAIN:
39     MAIL_DOMAIN = 'bizarsoftware.com.au'
41 # the next two are only used for the standalone HTTP server.
42 if not HTTP_HOST:
43     HTTP_HOST = ''
44 if not HTTP_PORT:
45     HTTP_PORT = 9080
47 # This is the directory that the database is going to be stored in
48 DATABASE = os.path.join(INSTANCE_HOME, 'db')
50 # This is the directory that the HTML templates reside in
51 TEMPLATES = os.path.join(INSTANCE_HOME, 'html')
53 # The email address that mail to roundup should go to
54 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN
56 # The web address that the instance is viewable at
57 ISSUE_TRACKER_WEB = 'http://www.bizarsoftware.com.au/cgi-bin/roundup.cgi/issues'
59 # The email address that roundup will complain to if it runs into trouble
60 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN
62 # Somewhere for roundup to log stuff internally sent to stdout or stderr
63 LOG = os.path.join(INSTANCE_HOME, 'roundup.log')
65 #
66 # $Log: not supported by cvs2svn $
67 # Revision 1.3  2001/08/02 06:38:17  richard
68 # Roundupdb now appends "mailing list" information to its messages which
69 # include the e-mail address and web interface address. Templates may
70 # override this in their db classes to include specific information (support
71 # instructions, etc).
72 #
73 # Revision 1.2  2001/07/29 07:01:39  richard
74 # Added vim command to all source so that we don't get no steenkin' tabs :)
75 #
76 # Revision 1.1  2001/07/23 23:28:43  richard
77 # Adding the classic template
78 #
79 # Revision 1.1  2001/07/23 04:33:21  anthonybaxter
80 # split __init__.py into 2. dbinit and instance_config.
81 #
82 #
83 # vim: set filetype=python ts=4 sw=4 et si