From 54c8c708b4572cfb3c97200d134861c4d6ffce2d Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 23 Jul 2001 23:16:01 +0000 Subject: [PATCH] Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@59 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/templates/extended/__init__.py | 6 +++++- roundup/templates/extended/interfaces.py | 25 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 roundup/templates/extended/interfaces.py diff --git a/roundup/templates/extended/__init__.py b/roundup/templates/extended/__init__.py index a594565..c6534be 100644 --- a/roundup/templates/extended/__init__.py +++ b/roundup/templates/extended/__init__.py @@ -1,8 +1,12 @@ -# $Id: __init__.py,v 1.2 2001-07-23 04:33:21 anthonybaxter Exp $ +# $Id: __init__.py,v 1.3 2001-07-23 23:16:01 richard Exp $ from instance_config import * from dbinit import * +from interfaces import * # # $Log: not supported by cvs2svn $ +# Revision 1.2 2001/07/23 04:33:21 anthonybaxter +# split __init__.py into 2. dbinit and instance_config. +# # diff --git a/roundup/templates/extended/interfaces.py b/roundup/templates/extended/interfaces.py new file mode 100644 index 0000000..af495fe --- /dev/null +++ b/roundup/templates/extended/interfaces.py @@ -0,0 +1,25 @@ +# $Id: interfaces.py,v 1.1 2001-07-23 23:16:01 richard Exp $ + +import instance_config +from roundup import cgi_client, mailgw + +class Client(cgi_client.Client): + ''' derives basic mail gateway implementation from the standard module, + with any specific extensions + ''' + TEMPLATES = instance_config.TEMPLATES + pass + +class MailGW(mailgw.MailGW): + ''' derives basic mail gateway implementation from the standard module, + with any specific extensions + ''' + ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL + ADMIN_EMAIL = instance_config.ADMIN_EMAIL + MAILHOST = instance_config.MAILHOST + +# +# $Log: not supported by cvs2svn $ +# + + -- 2.30.2