Skip to content

Commit 4db545d

Browse files
author
Richard Jones
committed
missed a couple of indexme checks
1 parent d7a22b1 commit 4db545d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roundup/backends/back_metakit.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.110 2006-08-16 19:00:47 schlatterbeck Exp $
1+
# $Id: back_metakit.py,v 1.111 2006-08-18 01:36:58 richard Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -1819,6 +1819,9 @@ def import_files(self, dirname, nodeid):
18191819
os.makedirs(os.path.dirname(dest))
18201820
shutil.copyfile(source, dest)
18211821

1822+
if self.properties['content'].indexme:
1823+
return
1824+
18221825
mime_type = None
18231826
if self.getprops().has_key('type'):
18241827
mime_type = self.get(nodeid, 'type')
@@ -1875,6 +1878,9 @@ def undo(fnm=nm):
18751878
f.write(content)
18761879
f.close()
18771880

1881+
if not self.properties['content'].indexme:
1882+
return newid
1883+
18781884
mimetype = propvalues.get('type', self.default_mime_type)
18791885
self.db.indexer.add_text((self.classname, newid, 'content'), content,
18801886
mimetype)

0 commit comments

Comments
 (0)