summaryrefslogtreecommitdiff
path: root/addons/document/std_index.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-06-24 18:36:47 +0300
committerP. Christeas <p_christ@hol.gr>2010-06-24 18:36:47 +0300
commitf7ee7c4b14cb8427f6050a7e532b94025ab04aa6 (patch)
tree70c57de1ec0bdb2d4afefd42193784520c54cd79 /addons/document/std_index.py
parent741c317b42b7def35b200e24ffc4d82074efcb32 (diff)
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
Diffstat (limited to 'addons/document/std_index.py')
-rw-r--r--addons/document/std_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/document/std_index.py b/addons/document/std_index.py
index 25b7e1f081f..2a588a017c1 100644
--- a/addons/document/std_index.py
+++ b/addons/document/std_index.py
@@ -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())