summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d55047)
raw | patch | inline | side by side (parent: 4d55047)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 30 Aug 2002 08:37:00 +0000 (08:37 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 30 Aug 2002 08:37:00 +0000 (08:37 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1009 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/scripts/roundup_server.py | patch | blob | history | |
roundup/security.py | patch | blob | history | |
roundup/templates/classic/interfaces.py | patch | blob | history |
index cd18a80a28a30c9cbb5cfd3d343feddbe658258e..b5f635e8aed1758f6e68afefee642dadd06969eb 100644 (file)
#
""" HTTP Server that serves roundup.
-$Id: roundup_server.py,v 1.5 2002-03-14 23:59:24 richard Exp $
+$Id: roundup_server.py,v 1.6 2002-08-30 08:33:28 richard Exp $
"""
# python version check
import BaseHTTPServer
# Roundup modules of use here
-from roundup import cgitb, cgi_client
+from roundup.cgi import cgitb, client
import roundup.instance
from roundup.i18n import _
sys.stdin = self.rfile
try:
self.inner_run_cgi()
- except cgi_client.NotFound:
+ except client.NotFound:
self.send_error(404, self.path)
- except cgi_client.Unauthorised:
+ except client.Unauthorised:
self.send_error(403, self.path)
except:
# it'd be nice to be able to detect if these are going to have
instance_home = self.ROUNDUP_INSTANCE_HOMES[instance_name]
instance = roundup.instance.open(instance_home)
else:
- raise cgi_client.NotFound
+ raise client.NotFound
# figure out what the rest of the path is
if len(l_path) > 2:
decoded_query = query.replace('+', ' ')
# do the roundup thang
- client = instance.Client(instance, self, env)
- client.main()
+ c = instance.Client(instance, self, env)
+ c.main()
def usage(message=''):
if message:
#
# $Log: not supported by cvs2svn $
+# Revision 1.5 2002/03/14 23:59:24 richard
+# . #517734 ] web header customisation is obscure
+#
# Revision 1.4 2002/02/21 07:02:54 richard
# The correct var is "HTTP_HOST"
#
diff --git a/roundup/security.py b/roundup/security.py
index 5829128c87a476b7346cfe622d7a88c52177dbd4..9ff5415113edccd1b44199e2a876700d9ce0e812 100644 (file)
--- a/roundup/security.py
+++ b/roundup/security.py
description="User may register through the email")
# initialise the permissions and roles needed for the UIs
- from roundup import cgi_client
- cgi_client.initialiseSecurity(self)
+ from roundup.cgi import client
+ client.initialiseSecurity(self)
from roundup import mailgw
mailgw.initialiseSecurity(self)
index b8cd2ca6c29e4a46fa45b29f235edd409e4a442e..fa605ee843597e008f2b0da80750402e8b2642ad 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: interfaces.py,v 1.13 2002-08-16 04:26:00 richard Exp $
+# $Id: interfaces.py,v 1.14 2002-08-30 08:31:01 richard Exp $
import instance_config
from roundup import mailgw
-from roundup import cgi_client
+from roundup.cgi import client
-class Client(cgi_client.Client):
+class Client(client.Client):
''' derives basic CGI implementation from the standard module,
with any specific extensions
'''
#
# $Log: not supported by cvs2svn $
+# Revision 1.13 2002/08/16 04:26:00 richard
+# preparation for moving cgi modules around
+#
# 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