Doc std_index: bring back the .doc index, using antiword

It may not work in all plarforms, but is the only thing we have so far
for those common files.

bzr revid: p_christ@hol.gr-20100624153647-73l75xuolkzhkp9b
This commit is contained in:
P. Christeas 2010-06-24 18:36:47 +03:00
parent 741c317b42
commit f7ee7c4b14
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ class DocIndex(indexer):
return ['.doc']
def _doIndexFile(self,fname):
#fp = Popen(['antiword', fname], shell=False, stdout=PIPE).stdout
return _to_unicode( 'None')
fp = Popen(['antiword', fname], shell=False, stdout=PIPE).stdout
return _to_unicode(fp.read())
cntIndex.register(DocIndex())