Mercurial > p > roundup > code
comparison config.py @ 4:b10f8834cce4
modified to use localconfig.py (if it exists)
and to make the various options (e.g. paths) based on ROUNDUP_HOME &c.
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Thu, 19 Jul 2001 05:46:47 +0000 |
| parents | 97559f7bae2e |
| children | 72a0ba086b3e |
comparison
equal
deleted
inserted
replaced
| 3:97559f7bae2e | 4:b10f8834cce4 |
|---|---|
| 1 ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=None | |
| 2 | |
| 3 try: | |
| 4 from localconfig import * | |
| 5 except ImportError: | |
| 6 localconfig = None | |
| 7 | |
| 8 import os | |
| 9 | |
| 10 # This is the root directory for roundup | |
| 11 if not ROUNDUP_HOME: | |
| 12 ROUNDUP_HOME='/home/httpd/html/roundup' | |
| 13 | |
| 14 # The SMTP mail host that roundup will use to send mail | |
| 15 if not MAILHOST: | |
| 16 MAILHOST = 'localhost' | |
| 17 | |
| 18 # The domain name used for email addresses. | |
| 19 if not MAIL_DOMAIN: | |
| 20 MAIL_DOMAIN = 'bizarsoftware.com.au' | |
| 21 | |
| 1 # This is the directory that the database is going to be stored in | 22 # This is the directory that the database is going to be stored in |
| 2 DATABASE = '/home/httpd/html/roundup/db' | 23 DATABASE = os.path.join(ROUNDUP_HOME, 'db') |
| 3 | 24 |
| 4 # The email address that mail to roundup should go to | 25 # The email address that mail to roundup should go to |
| 5 ISSUE_TRACKER_EMAIL = 'issue_tracker@bizarsoftware.com.au' | 26 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
| 6 | 27 |
| 7 # The email address that roundup will complain to if it runs into trouble | 28 # The email address that roundup will complain to if it runs into trouble |
| 8 ADMIN_EMAIL = "roundup-admin@bizarsoftware.com.au" | 29 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
| 9 | |
| 10 # The SMTP mail host that roundup will use to send mail | |
| 11 MAILHOST = 'dirk' | |
| 12 | 30 |
| 13 # Somewhere for roundup to log stuff internally sent to stdout or stderr | 31 # Somewhere for roundup to log stuff internally sent to stdout or stderr |
| 14 LOG = '/home/httpd/html/roundup/roundup.log' | 32 LOG = os.path.join(ROUNDUP_HOME, 'roundup.log') |
| 33 | |
| 34 del os |
