From 1280ea0cffe927e37ec9cbd7d8ced347dbc7f6b4 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 16 Aug 2002 04:26:00 +0000 Subject: [PATCH] preparation for moving cgi modules around git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@954 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/security.py | 3 ++- roundup/templates/classic/interfaces.py | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/roundup/security.py b/roundup/security.py index f34892e..5829128 100644 --- a/roundup/security.py +++ b/roundup/security.py @@ -66,8 +66,9 @@ class Security: description="User may register through the email") # initialise the permissions and roles needed for the UIs - from roundup import cgi_client, mailgw + from roundup import cgi_client cgi_client.initialiseSecurity(self) + from roundup import mailgw mailgw.initialiseSecurity(self) def getPermission(self, permission, classname=None): diff --git a/roundup/templates/classic/interfaces.py b/roundup/templates/classic/interfaces.py index 40513b0..b8cd2ca 100644 --- a/roundup/templates/classic/interfaces.py +++ b/roundup/templates/classic/interfaces.py @@ -15,10 +15,11 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: interfaces.py,v 1.12 2002-01-14 02:20:15 richard Exp $ +# $Id: interfaces.py,v 1.13 2002-08-16 04:26:00 richard Exp $ import instance_config -from roundup import cgi_client, mailgw +from roundup import mailgw +from roundup import cgi_client class Client(cgi_client.Client): ''' derives basic CGI implementation from the standard module, @@ -34,6 +35,15 @@ class MailGW(mailgw.MailGW): # # $Log: not supported by cvs2svn $ +# Revision 1.12 2002/01/14 02:20:15 richard +# . changed all config accesses so they access either the instance or the +# config attriubute on the db. This means that all config is obtained from +# instance_config instead of the mish-mash of classes. This will make +# switching to a ConfigParser setup easier too, I hope. +# +# At a minimum, this makes migration a _little_ easier (a lot easier in the +# 0.5.0 switch, I hope!) +# # Revision 1.11 2002/01/02 02:32:38 richard # ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER # -- 2.30.2