Skip to content

Commit 7f208a9

Browse files
author
Richard Jones
committed
preparation for moving cgi modules around
1 parent f3e0afd commit 7f208a9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

roundup/security.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ def __init__(self, db):
6666
description="User may register through the email")
6767

6868
# initialise the permissions and roles needed for the UIs
69-
from roundup import cgi_client, mailgw
69+
from roundup import cgi_client
7070
cgi_client.initialiseSecurity(self)
71+
from roundup import mailgw
7172
mailgw.initialiseSecurity(self)
7273

7374
def getPermission(self, permission, classname=None):

roundup/templates/classic/interfaces.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: interfaces.py,v 1.12 2002-01-14 02:20:15 richard Exp $
18+
# $Id: interfaces.py,v 1.13 2002-08-16 04:26:00 richard Exp $
1919

2020
import instance_config
21-
from roundup import cgi_client, mailgw
21+
from roundup import mailgw
22+
from roundup import cgi_client
2223

2324
class Client(cgi_client.Client):
2425
''' derives basic CGI implementation from the standard module,
@@ -34,6 +35,15 @@ class MailGW(mailgw.MailGW):
3435

3536
#
3637
# $Log: not supported by cvs2svn $
38+
# Revision 1.12 2002/01/14 02:20:15 richard
39+
# . changed all config accesses so they access either the instance or the
40+
# config attriubute on the db. This means that all config is obtained from
41+
# instance_config instead of the mish-mash of classes. This will make
42+
# switching to a ConfigParser setup easier too, I hope.
43+
#
44+
# At a minimum, this makes migration a _little_ easier (a lot easier in the
45+
# 0.5.0 switch, I hope!)
46+
#
3747
# Revision 1.11 2002/01/02 02:32:38 richard
3848
# ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
3949
#

0 commit comments

Comments
 (0)