Mercurial > p > roundup > code
annotate config.py @ 19:a5eb90ae8903
Fixed a bug in the filter
wrong variable names in the error message. Recognised that the filter
has an outstanding bug. Hrm. we need a bug tracker for this project :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 20 Jul 2001 08:20:24 +0000 |
| parents | cdb38951a7ab |
| children |
| rev | line source |
|---|---|
|
11
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
1 # $Id: config.py,v 1.6 2001-07-19 10:43:01 anthonybaxter Exp $ |
|
5
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
2 |
|
11
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
3 ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=HTTP_HOST=None |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
4 HTTP_PORT=0 |
|
4
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
5 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
6 try: |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
7 from localconfig import * |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
8 except ImportError: |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
9 localconfig = None |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
10 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
11 import os |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
12 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
13 # This is the root directory for roundup |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
14 if not ROUNDUP_HOME: |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
15 ROUNDUP_HOME='/home/httpd/html/roundup' |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
16 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
17 # The SMTP mail host that roundup will use to send mail |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
18 if not MAILHOST: |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
19 MAILHOST = 'localhost' |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
20 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
21 # The domain name used for email addresses. |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
22 if not MAIL_DOMAIN: |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
23 MAIL_DOMAIN = 'bizarsoftware.com.au' |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
24 |
|
11
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
25 # the next two are only used for the standalone HTTP server. |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
26 if not HTTP_HOST: |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
27 HTTP_HOST = '' |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
28 if not HTTP_PORT: |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
29 HTTP_PORT = 9080 |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
30 |
|
0
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
31 # This is the directory that the database is going to be stored in |
|
4
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
32 DATABASE = os.path.join(ROUNDUP_HOME, 'db') |
|
0
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 |
|
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
34 # The email address that mail to roundup should go to |
|
4
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
35 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
|
0
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
36 |
|
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
37 # The email address that roundup will complain to if it runs into trouble |
|
4
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
38 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
|
0
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
39 |
|
5e92642cd1f8
Initial import of code
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 # Somewhere for roundup to log stuff internally sent to stdout or stderr |
|
4
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
41 LOG = os.path.join(ROUNDUP_HOME, 'roundup.log') |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
42 |
|
b10f8834cce4
modified to use localconfig.py (if it exists)
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
3
diff
changeset
|
43 del os |
|
5
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
44 |
|
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
45 # |
|
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
46 # $Log: not supported by cvs2svn $ |
|
11
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
47 # Revision 1.5 2001/07/19 06:27:07 anthonybaxter |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
48 # fixing (manually) the (dollarsign)Log(dollarsign) entries caused by |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
49 # my using the magic (dollarsign)Id(dollarsign) and (dollarsign)Log(dollarsign) |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
50 # strings in a commit message. I'm a twonk. |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
51 # |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
52 # Also broke the help string in two. |
|
cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
9
diff
changeset
|
53 # |
|
9
3b0a72f54613
fixing (manually) the (dollarsign)Log(dollarsign)...
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
5
diff
changeset
|
54 # Revision 1.4 2001/07/19 05:52:22 anthonybaxter |
|
3b0a72f54613
fixing (manually) the (dollarsign)Log(dollarsign)...
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
5
diff
changeset
|
55 # Added CVS keywords Id and Log to all python files. |
|
3b0a72f54613
fixing (manually) the (dollarsign)Log(dollarsign)...
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
5
diff
changeset
|
56 # |
|
5
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
57 # |
|
72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
4
diff
changeset
|
58 |
