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:
parent
741c317b42
commit
f7ee7c4b14
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue