object_lookup error when icon for mime type is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
Sylvain Viollon |
Bug Description
when i try to link to a object and a .docx document is present in the same folder the lookup window shows "An error happened". it seems that there is a problem with rendering the icon in the lookup window.
after adding the line below in Products.
('application/
precociously i also added these lines:
('application/
('application/
but in my opinion there should be a graceful fallback when the mime type is not known. this seems to work in the edit tab but not in the lookup window.
-------
2010-08-12T07:04:12 ERROR Zope.SiteErrorLog 1281589452.
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.
Module Shared.
Module Shared.
Module Products.
Module Products.
Module zope.pagetempla
- Warning: Macro expansion failed
- Warning: exceptions.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module Products.
Module zope.tales.tales, line 696, in evaluate
- URL: object_lookup
- Line 371, Column 30
- Expression: <PythonExpr (view.renderIco
- Names:
{'container': <Silva Publication instance foo>,
'context': <Silva Publication instance foo>,
'default': <object object at 0x2b0008a0e200>,
'here': <Silva Publication instance foo>,
'loop': {'asset': <Products.
'nothing': None,
'options': {'args': ()},
'repeat': <Products.
'request': <HTTPRequest, URL=https:/
'root': <Application at >,
'template': <ImplicitAcquir
'user': <LDAPUser 'bar'>,
'view': <Products.
'views': <zope.app.
Module zope.tales.
- __traceback_info__: (view.renderIco
Module <string>, line 0, in ?
Module Products.
AttributeError: 'module' object has no attribute 'RegistryError'
Changed in silva: | |
status: | Fix Committed → Fix Released |
I fixed both issues in SVN (add mimetypes, and fix the RegistryError).