Skip to content

Commit 52a2130

Browse files
author
Ralf Schlatterbeck
committed
Make most of the regression tests for metakit run again.
1 parent 2e4f124 commit 52a2130

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

roundup/backends/back_metakit.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.109 2006-07-08 18:28:18 schlatterbeck Exp $
1+
# $Id: back_metakit.py,v 1.110 2006-08-16 19:00:47 schlatterbeck Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -46,7 +46,7 @@
4646
import metakit
4747
from sessions_dbm import Sessions, OneTimeKeys
4848
import re, marshal, os, sys, time, calendar, shutil
49-
from indexer_common import Indexer
49+
from indexer_common import Indexer as CommonIndexer
5050
import locking
5151
from roundup.date import Range
5252
from blobfiles import files_in_dir
@@ -1912,7 +1912,7 @@ def undo(fnm=nm):
19121912
f.close()
19131913

19141914
if self.properties['content'].indexme:
1915-
mimetype = self.get('type', self.default_mime_type)
1915+
mimetype = propvalues.get('type', self.default_mime_type)
19161916
self.db.indexer.add_text((self.classname, itemid, 'content'),
19171917
content, mimetype)
19181918

@@ -1961,8 +1961,9 @@ def __init__(self, db, classname, **properties):
19611961

19621962
CURVERSION = 2
19631963

1964-
class MetakitIndexer(Indexer):
1964+
class MetakitIndexer(CommonIndexer):
19651965
def __init__(self, db):
1966+
CommonIndexer.__init__(self, db)
19661967
self.path = os.path.join(db.config.DATABASE, 'index.mk4')
19671968
self.db = metakit.storage(self.path, 1)
19681969
self.datadb = db._db

0 commit comments

Comments
 (0)