From c99d098364169f5e126a835981889b7edb113e46 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 8 Jul 2002 07:26:14 +0000 Subject: [PATCH] ehem git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@833 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 034c384..bc6ff1b 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.131 2002-07-08 06:53:57 richard Exp $ +# $Id: cgi_client.py,v 1.132 2002-07-08 07:26:14 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -26,6 +26,7 @@ import binascii, Cookie, time, random import roundupdb, htmltemplate, date, hyperdb, password from roundup.i18n import _ +from roundup.indexer import Indexer class Unauthorised(ValueError): pass @@ -72,6 +73,10 @@ class Client: # someone gave us a non-int debug level, turn it off self.debug = 0 + # used for searching the indexes + self.indexer = Indexer('%s/db'%instance.INSTANCE_HOME) + + def getuid(self): try: return self.db.user.lookup(self.user) @@ -1390,6 +1395,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): # # $Log: not supported by cvs2svn $ +# Revision 1.131 2002/07/08 06:53:57 richard +# Not sure why the cgi_client had an indexer argument. +# # Revision 1.130 2002/06/27 12:01:53 gmcm # If the form has a :multilink, put a back href in the pageheader (back to the linked-to node). # Some minor optimizations (only compile regexes once). -- 2.30.2