Mercurial > p > roundup > code
comparison config.py @ 11:cdb38951a7ab
HTTP_HOST and HTTP_PORT config options.
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Thu, 19 Jul 2001 10:43:01 +0000 |
| parents | 3b0a72f54613 |
| children |
comparison
equal
deleted
inserted
replaced
| 10:e09edaebc9de | 11:cdb38951a7ab |
|---|---|
| 1 # $Id: config.py,v 1.5 2001-07-19 06:27:07 anthonybaxter Exp $ | 1 # $Id: config.py,v 1.6 2001-07-19 10:43:01 anthonybaxter Exp $ |
| 2 | 2 |
| 3 ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=None | 3 ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=HTTP_HOST=None |
| 4 HTTP_PORT=0 | |
| 4 | 5 |
| 5 try: | 6 try: |
| 6 from localconfig import * | 7 from localconfig import * |
| 7 except ImportError: | 8 except ImportError: |
| 8 localconfig = None | 9 localconfig = None |
| 19 | 20 |
| 20 # The domain name used for email addresses. | 21 # The domain name used for email addresses. |
| 21 if not MAIL_DOMAIN: | 22 if not MAIL_DOMAIN: |
| 22 MAIL_DOMAIN = 'bizarsoftware.com.au' | 23 MAIL_DOMAIN = 'bizarsoftware.com.au' |
| 23 | 24 |
| 25 # the next two are only used for the standalone HTTP server. | |
| 26 if not HTTP_HOST: | |
| 27 HTTP_HOST = '' | |
| 28 if not HTTP_PORT: | |
| 29 HTTP_PORT = 9080 | |
| 30 | |
| 24 # This is the directory that the database is going to be stored in | 31 # This is the directory that the database is going to be stored in |
| 25 DATABASE = os.path.join(ROUNDUP_HOME, 'db') | 32 DATABASE = os.path.join(ROUNDUP_HOME, 'db') |
| 26 | 33 |
| 27 # The email address that mail to roundup should go to | 34 # The email address that mail to roundup should go to |
| 28 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN | 35 ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
| 35 | 42 |
| 36 del os | 43 del os |
| 37 | 44 |
| 38 # | 45 # |
| 39 # $Log: not supported by cvs2svn $ | 46 # $Log: not supported by cvs2svn $ |
| 47 # Revision 1.5 2001/07/19 06:27:07 anthonybaxter | |
| 48 # fixing (manually) the (dollarsign)Log(dollarsign) entries caused by | |
| 49 # my using the magic (dollarsign)Id(dollarsign) and (dollarsign)Log(dollarsign) | |
| 50 # strings in a commit message. I'm a twonk. | |
| 51 # | |
| 52 # Also broke the help string in two. | |
| 53 # | |
| 40 # Revision 1.4 2001/07/19 05:52:22 anthonybaxter | 54 # Revision 1.4 2001/07/19 05:52:22 anthonybaxter |
| 41 # Added CVS keywords Id and Log to all python files. | 55 # Added CVS keywords Id and Log to all python files. |
| 42 # | 56 # |
| 43 # | 57 # |
| 44 | 58 |
