Python 使用plone 4.2.1的collective.documentviewer会抛出错误

Python 使用plone 4.2.1的collective.documentviewer会抛出错误,python,linux,plone,Python,Linux,Plone,安装collective.documentviewer后,我将文件上传到plone站点,没有任何问题。我可以使用文档查看器正确预览文件,但在重新启动服务器并尝试访问包含pdf和doc文件的文件夹后,它会抛出一些回溯,如下所示: URL:/abc/demo/ofs.interfaces.ifolder-dvpdf-group-view 第24行第0列 表达方式: 姓名: {'container':, “上下文”:, “默认值”:, “这里”:, '循环':{}, “没有”:没有, 'options

安装collective.documentviewer后,我将文件上传到plone站点,没有任何问题。我可以使用文档查看器正确预览文件,但在重新启动服务器并尝试访问包含pdf和doc文件的文件夹后,它会抛出一些回溯,如下所示:

URL:/abc/demo/ofs.interfaces.ifolder-dvpdf-group-view
第24行第0列
表达方式:
姓名:
{'container':,
“上下文”:,
“默认值”:,
“这里”:,
'循环':{},
“没有”:没有,
'options':{'args':()},
“重复”:,
“请求”:,
“根”:,
“模板”:,
“用户”:,
“视图”:
模块Products.PageTemplates.ZRPythonExpr,第48行,输入调用__
__回溯信息:view.results(门户类型=文件类型)
模块PythonExpr,第1行,在
模块collective.documentviewer.views,第613行,在结果中
getContents中第604行的模块collective.documentviewer.views
模块collective.documentviewer.views,第630行,b_尺寸
AttributeError:“TTWView”对象没有“全局设置”属性

我无法查看文件夹内容。不用说,我无法使用查看器查看文件。我尝试过停用和重新激活documentviewer,还创建了一个新的plone实例。但过了一段时间后,我们会面临同样的问题。有人能给我指点迷津吗?

我用的是Plone 4.1.4版本,这个附加组件更稳定。它没有给我任何错误。还注意到,如果您甚至尝试自定义视图,即/home/plone/plone/buildout cache/eggs/collective.documentviewer-2.2.1-py2.6.egg/collective/documentviewer/templates/documentviewer.pt,它会为“widget”抛出一些错误,即使没有更改任何内容

门户网站中有自定义视图吗?转到@到目前为止,没有对视图进行自定义,只不过我添加了plone.footer消息正文,并通过将其替换为无代码(空白)覆盖了at_下载代码,以便在单击其hlink时不会下载该文件。您安装了哪一版本的collective.documentviewer?母版中的630行与b_大小无关。请尝试更新的版本或从源代码处使用buildout.cfg:eggs和zcml添加此产品collective.documentviewer。安装的文档查看器版本为2.2.1、Plone 4.2.1.1(4207)CMF 2.2.6、Zope 2.13.16、Python 2.7.3(默认,2013年8月16日,12:18:07)[GCC 4.7.2]PIL 1.7.7(枕头)
URL: /abc/demo/ofs.interfaces.ifolder-dvpdf-group-view
Line 24, Column 0
Expression: <PythonExpr view.results(portal_type=file_types)>
Names:
{'container': <ATFolder at /abc/demo>,
 'context': <ATFolder at /abc/demo>,
 'default': <object object at 0xb75ec7e0>,
 'here': <ATFolder at /abc/demo>,
 'loop': {},
 'nothing': None,
 'options': {'args': ()},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xcb2eaf4>,
 'request': <HTTPRequest, URL=http://88.198.104.37:8081/abc/demo/dvpdf-group-view>,
 'root': <Application at >,
 'template': <TTWViewTemplate at /abc/demo/ofs.interfaces.ifolder-dvpdf-group-view>,
 'user': <PloneUser 'xyz'>,
 'view': <five.customerize.zpt.TTWView object at 0xc80df8c>}
Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
__traceback_info__: view.results(portal_type=file_types)
Module PythonExpr, line 1, in <expression>
Module collective.documentviewer.views, line 613, in results
Module collective.documentviewer.views, line 604, in getContents
Module collective.documentviewer.views, line 630, in b_size
AttributeError: 'TTWView' object has no attribute 'global_settings'