如果我在 plone 中重建我的目录,我会得到很多这样的信息:
2010-02-18T11:26:09 INFO Archetypes Error while trying to convert file contents to 'text/plain' in <Field file(file:rw)>.getIndexable() of <ATFile at /site/test1/test.doc>: Unable to find binary "wvHtml" in /sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin
这发生在 .doc 和 .pdf 文件上。
我不想转换文档或 PDF。我怎样才能完全禁用它?
最佳答案
您可以在 ZMI/portal_transforms 工具中禁用(删除)转换。如果 Plone 没有找到从 Word 到纯文本或 PDF 到纯文本的转换,它不会尝试索引文件内容。 转到 ZMI/portal_transforms 并删除 word_to_html 项目。
关于python - 禁用 Plone Archetypes 索引/转换 doc/pdf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2288470/