Skip to content

Commit 32ed86f

Browse files
author
Richard Jones
committed
ehem
1 parent 2b1b651 commit 32ed86f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup/cgi_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.131 2002-07-08 06:53:57 richard Exp $
18+
# $Id: cgi_client.py,v 1.132 2002-07-08 07:26:14 richard Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -26,6 +26,7 @@
2626

2727
import roundupdb, htmltemplate, date, hyperdb, password
2828
from roundup.i18n import _
29+
from roundup.indexer import Indexer
2930

3031
class Unauthorised(ValueError):
3132
pass
@@ -72,6 +73,10 @@ def __init__(self, instance, request, env, form=None):
7273
# someone gave us a non-int debug level, turn it off
7374
self.debug = 0
7475

76+
# used for searching the indexes
77+
self.indexer = Indexer('%s/db'%instance.INSTANCE_HOME)
78+
79+
7580
def getuid(self):
7681
try:
7782
return self.db.user.lookup(self.user)
@@ -1390,6 +1395,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
13901395

13911396
#
13921397
# $Log: not supported by cvs2svn $
1398+
# Revision 1.131 2002/07/08 06:53:57 richard
1399+
# Not sure why the cgi_client had an indexer argument.
1400+
#
13931401
# Revision 1.130 2002/06/27 12:01:53 gmcm
13941402
# If the form has a :multilink, put a back href in the pageheader (back to the linked-to node).
13951403
# Some minor optimizations (only compile regexes once).

0 commit comments

Comments
 (0)