Skip to content

Commit 1f1f572

Browse files
author
Richard Jones
committed
some more Xapian stuff (doc, test fixes)
1 parent cf05749 commit 1f1f572

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

TODO.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ Required:
55
- write up security model used in classic tracker
66
- ensure classic template actually implements the model detailed
77
- "Web Access" revocation needs work - the context should not be rendered
8-
- should redefinitions of a permission keyed off (name, classname) generate
9-
an error or a warning? Something needs to be generated, as such
10-
occurrances are an error in the schema...
11-
- check that the Provisional User example actually works as advertised
128

139
Optionally:
1410
- clean up roundup.cgi (switch to config file, use proper logging, remove

doc/installation.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Roundup trackers
2222
`choosing your template`_.
2323

2424
Roundup support code
25-
Installed into your Python install's lib directory
25+
Installed into your Python install's lib directory.
2626

2727
Roundup scripts
2828
These include the email gateway, the roundup
@@ -46,19 +46,25 @@ http://starship.python.net/crew/mhammond/win32/).
4646
Optional Components
4747
===================
4848

49-
You may optionall install and use:
49+
You may optionally install and use:
5050

5151
An RDBMS
5252
Sqlite, MySQL and Postgresql are all supported by Roundup and will be
5353
used if available. One of these is recommended if you are anticipating a
5454
large user base (see `choosing your backend`_ below).
55+
5556
Xapian full-text indexer
5657
The Xapian_ full-text indexer is also supported and will be used by
5758
default if it is available. This is strongly recommended if you are
5859
anticipating a large number of issues (> 1000).
5960

61+
You may install Xapian at any time, even after a tracker has been
62+
installed and used. You will need to run the "roundup-admin reindex"
63+
command if the tracker has existing data.
64+
6065
.. _Xapian: http://www.xapian.org/
6166

67+
6268
Getting Roundup
6369
===============
6470

test/test_indexer.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
# $Id: test_indexer.py,v 1.7 2005-04-28 00:21:42 richard Exp $
21+
# $Id: test_indexer.py,v 1.8 2005-04-28 09:06:09 richard Exp $
2222

2323
import os, unittest, shutil
2424

25+
class db:
26+
class config:
27+
DATABASE = 'test-index'
28+
2529
class IndexerTest(unittest.TestCase):
2630
def setUp(self):
2731
if os.path.exists('test-index'):
2832
shutil.rmtree('test-index')
2933
os.mkdir('test-index')
3034
os.mkdir('test-index/files')
3135
from roundup.backends.indexer_dbm import Indexer
32-
self.dex = Indexer('test-index')
36+
self.dex = Indexer(db)
3337
self.dex.load_index()
3438

3539
def test_basics(self):
@@ -45,12 +49,13 @@ def tearDown(self):
4549

4650
class XapianIndexerTest(IndexerTest):
4751
def setUp(self):
48-
if os.path.exists('text-index'):
49-
shutil.rmtree('text-index')
52+
if os.path.exists('test-index'):
53+
shutil.rmtree('test-index')
54+
os.mkdir('test-index')
5055
from roundup.backends.indexer_xapian import Indexer
51-
self.dex = Indexer('.')
56+
self.dex = Indexer(db)
5257
def tearDown(self):
53-
shutil.rmtree('text-index')
58+
shutil.rmtree('test-index')
5459

5560
def test_suite():
5661
suite = unittest.TestSuite()

0 commit comments

Comments
 (0)