Mercurial > p > roundup > code
annotate roundup/templates/classic/interfaces.py @ 413:aafe6980123d
This config stuff is getting to be a real mess...
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 26 Nov 2001 23:00:53 +0000 |
| parents | c0ca7f35e0c5 |
| children | 103f521810f7 |
| rev | line source |
|---|---|
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
1 # |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
3 # This module is free software, and you may redistribute it and/or modify |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
4 # under the same terms as Python, so long as this copyright message and |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
5 # disclaimer are retained in their original form. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
6 # |
| 214 | 7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR |
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
10 # POSSIBILITY OF SUCH DAMAGE. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
11 # |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
17 # |
|
413
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
18 # $Id: interfaces.py,v 1.9 2001-11-26 23:00:53 richard Exp $ |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 import instance_config |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 from roundup import cgi_client, mailgw |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 class Client(cgi_client.Client): |
|
273
45e32247aa33
Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
24 ''' derives basic CGI implementation from the standard module, |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 with any specific extensions |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 ''' |
|
413
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
27 INSTANCE_NAME = instance_config.INSTANCE_NAME |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
28 TEMPLATES = instance_config.TEMPLATES |
|
316
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
29 FILTER_POSITION = instance_config.FILTER_POSITION |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
30 ANONYMOUS_ACCESS = instance_config.ANONYMOUS_ACCESS |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
31 ANONYMOUS_REGISTER = instance_config.ANONYMOUS_REGISTER |
|
120
e8087fc26fee
Fixed the classic template so it's more like the "advertised" Roundup template.
Richard Jones <richard@users.sourceforge.net>
parents:
57
diff
changeset
|
32 |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 class MailGW(mailgw.MailGW): |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
34 ''' derives basic mail gateway implementation from the standard module, |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
35 with any specific extensions |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
36 ''' |
|
413
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
37 INSTANCE_NAME = instance_config.INSTANCE_NAME |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
38 ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
39 ADMIN_EMAIL = instance_config.ADMIN_EMAIL |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 MAILHOST = instance_config.MAILHOST |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
41 |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
42 # |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
43 # $Log: not supported by cvs2svn $ |
|
413
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
44 # Revision 1.8 2001/10/22 03:25:01 richard |
|
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
45 # Added configuration for: |
|
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
46 # . anonymous user access and registration (deny/allow) |
|
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
47 # . filter "widget" location on index page (top, bottom, both) |
|
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
48 # Updated some documentation. |
|
aafe6980123d
This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents:
316
diff
changeset
|
49 # |
|
316
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
50 # Revision 1.7 2001/10/09 07:38:58 richard |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
51 # Pushed the base code for the extended schema CGI interface back into the |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
52 # code cgi_client module so that future updates will be less painful. |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
53 # Also removed a debugging print statement from cgi_client. |
|
c0ca7f35e0c5
Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents:
273
diff
changeset
|
54 # |
|
273
45e32247aa33
Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
55 # Revision 1.6 2001/08/07 00:24:43 richard |
|
45e32247aa33
Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
56 # stupid typo |
|
45e32247aa33
Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
57 # |
| 214 | 58 # Revision 1.5 2001/08/07 00:15:51 richard |
| 59 # Added the copyright/license notice to (nearly) all files at request of | |
| 60 # Bizar Software. | |
| 61 # | |
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
62 # Revision 1.4 2001/07/30 01:25:57 richard |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
63 # Changes to reflect cgi_client now implementing this template by default, |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
64 # and not "extended". |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
143
diff
changeset
|
65 # |
|
143
fd20d16ae81e
Changes to reflect cgi_client now implementing classic by default...
Richard Jones <richard@users.sourceforge.net>
parents:
127
diff
changeset
|
66 # Revision 1.3 2001/07/29 07:01:39 richard |
|
fd20d16ae81e
Changes to reflect cgi_client now implementing classic by default...
Richard Jones <richard@users.sourceforge.net>
parents:
127
diff
changeset
|
67 # Added vim command to all source so that we don't get no steenkin' tabs :) |
|
fd20d16ae81e
Changes to reflect cgi_client now implementing classic by default...
Richard Jones <richard@users.sourceforge.net>
parents:
127
diff
changeset
|
68 # |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
120
diff
changeset
|
69 # Revision 1.2 2001/07/29 04:07:37 richard |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
120
diff
changeset
|
70 # Fixed the classic template so it's more like the "advertised" Roundup |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
120
diff
changeset
|
71 # template. |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
120
diff
changeset
|
72 # |
|
120
e8087fc26fee
Fixed the classic template so it's more like the "advertised" Roundup template.
Richard Jones <richard@users.sourceforge.net>
parents:
57
diff
changeset
|
73 # Revision 1.1 2001/07/23 23:28:43 richard |
|
e8087fc26fee
Fixed the classic template so it's more like the "advertised" Roundup template.
Richard Jones <richard@users.sourceforge.net>
parents:
57
diff
changeset
|
74 # Adding the classic template |
|
e8087fc26fee
Fixed the classic template so it's more like the "advertised" Roundup template.
Richard Jones <richard@users.sourceforge.net>
parents:
57
diff
changeset
|
75 # |
|
57
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
76 # Revision 1.1 2001/07/23 23:16:01 richard |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
77 # Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff. |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
78 # |
|
6ff85bc2dd56
Adding the classic template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
79 # |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
120
diff
changeset
|
80 # vim: set filetype=python ts=4 sw=4 et si |
