|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
|
26 | 26 |
|
27 | 27 | import roundupdb, htmltemplate, date, hyperdb, password |
28 | 28 | from roundup.i18n import _ |
| 29 | +from roundup.indexer import Indexer |
29 | 30 |
|
30 | 31 | class Unauthorised(ValueError): |
31 | 32 | pass |
@@ -72,6 +73,10 @@ def __init__(self, instance, request, env, form=None): |
72 | 73 | # someone gave us a non-int debug level, turn it off |
73 | 74 | self.debug = 0 |
74 | 75 |
|
| 76 | + # used for searching the indexes |
| 77 | + self.indexer = Indexer('%s/db'%instance.INSTANCE_HOME) |
| 78 | + |
| 79 | + |
75 | 80 | def getuid(self): |
76 | 81 | try: |
77 | 82 | return self.db.user.lookup(self.user) |
@@ -1390,6 +1395,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): |
1390 | 1395 |
|
1391 | 1396 | # |
1392 | 1397 | # $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 | +# |
1393 | 1401 | # Revision 1.130 2002/06/27 12:01:53 gmcm |
1394 | 1402 | # If the form has a :multilink, put a back href in the pageheader (back to the linked-to node). |
1395 | 1403 | # Some minor optimizations (only compile regexes once). |
|
0 commit comments