Code

. #502437 ] rogue reactor and unittest
[roundup.git] / roundup / templates / classic / interfaces.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 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: interfaces.py,v 1.11 2002-01-02 02:32:38 richard Exp $
20 import instance_config
21 from roundup import cgi_client, mailgw 
23 class Client(cgi_client.Client): 
24     ''' derives basic CGI implementation from the standard module, 
25         with any specific extensions 
26     ''' 
27     INSTANCE_NAME = instance_config.INSTANCE_NAME
28     TEMPLATES = instance_config.TEMPLATES
29     FILTER_POSITION = instance_config.FILTER_POSITION
30     ANONYMOUS_ACCESS = instance_config.ANONYMOUS_ACCESS
31     ANONYMOUS_REGISTER = instance_config.ANONYMOUS_REGISTER
33 class MailGW(mailgw.MailGW): 
34     ''' derives basic mail gateway implementation from the standard module, 
35         with any specific extensions 
36     ''' 
37     INSTANCE_NAME = instance_config.INSTANCE_NAME
38     ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL
39     ADMIN_EMAIL = instance_config.ADMIN_EMAIL
40     MAILHOST = instance_config.MAILHOST
41     ANONYMOUS_REGISTER = instance_config.ANONYMOUS_REGISTER
43 #
44 # $Log: not supported by cvs2svn $
45 # Revision 1.10  2001/12/20 15:43:01  rochecompaan
46 # Features added:
47 #  .  Multilink properties are now displayed as comma separated values in
48 #     a textbox
49 #  .  The add user link is now only visible to the admin user
50 #  .  Modified the mail gateway to reject submissions from unknown
51 #     addresses if ANONYMOUS_ACCESS is denied
52 #
53 # Revision 1.9  2001/11/26 23:00:53  richard
54 # This config stuff is getting to be a real mess...
55 #
56 # Revision 1.8  2001/10/22 03:25:01  richard
57 # Added configuration for:
58 #  . anonymous user access and registration (deny/allow)
59 #  . filter "widget" location on index page (top, bottom, both)
60 # Updated some documentation.
61 #
62 # Revision 1.7  2001/10/09 07:38:58  richard
63 # Pushed the base code for the extended schema CGI interface back into the
64 # code cgi_client module so that future updates will be less painful.
65 # Also removed a debugging print statement from cgi_client.
66 #
67 # Revision 1.6  2001/08/07 00:24:43  richard
68 # stupid typo
69 #
70 # Revision 1.5  2001/08/07 00:15:51  richard
71 # Added the copyright/license notice to (nearly) all files at request of
72 # Bizar Software.
73 #
74 # Revision 1.4  2001/07/30 01:25:57  richard
75 # Changes to reflect cgi_client now implementing this template by default,
76 # and not "extended".
77 #
78 # Revision 1.3  2001/07/29 07:01:39  richard
79 # Added vim command to all source so that we don't get no steenkin' tabs :)
80 #
81 # Revision 1.2  2001/07/29 04:07:37  richard
82 # Fixed the classic template so it's more like the "advertised" Roundup
83 # template.
84 #
85 # Revision 1.1  2001/07/23 23:28:43  richard
86 # Adding the classic template
87 #
88 # Revision 1.1  2001/07/23 23:16:01  richard
89 # Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
90 #
91 #
92 # vim: set filetype=python ts=4 sw=4 et si