What steps will reproduce the problem?
1. create a page, and add some images to it using the wysiwyg editor
2. cut the images from the folder where they are now, and paste them in a new
folder
3. the images still load fine in web, but for the mobile view it breaks with
error:
- URL: file:/Users/zeus/plone/mfabrik/mfabrik/src/gomobiletheme.basic/gomobiletheme/basic/skins/gomobiletheme_basic/document_view.pt
- Line 21, Column 16
- Expression: <PythonExpr helper.processHTML(text)>
- Names:
{'container': <PloneSite at /webandmobile>,
'context': <ATDocument at /webandmobile/tour/business-tour>,
'default': <object object at 0x100320200>,
'here': <ATDocument at /webandmobile/tour/business-tour>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x101175ef0>,
'request': <HTTPRequest, URL=http://m.localhost:8080/webandmobile/tour/business-tour/document_view>,
'root': <Application at >,
'template': <FSPageTemplate at /webandmobile/document_view used for /webandmobile/tour/business-tour>,
'traverse_subpath': [],
'user': <SpecialUser 'Anonymous User'>}
Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
- __traceback_info__: helper.processHTML(text)
Module PythonExpr, line 1, in <expression>
Module gomobile.mobile.browser.imageprocessor, line 703, in processHTML
Module gomobile.mobile.browser.imageprocessor, line 364, in processHTML
Module mobile.htmlprocessing.transformers.basic, line 77, in process
Module mobile.htmlprocessing.transformers.basic, line 59, in clean_mobile
Module mobile.htmlprocessing.transformers.basic, line 54, in process_imgs
Module mobile.htmlprocessing.transformers.imageresizer, line 87, in process_img
Module gomobile.mobile.browser.imageprocessor, line 171, in rewrite
Module gomobile.mobile.browser.imageprocessor, line 319, in getImageDownloadURL
Module gomobile.mobile.browser.imageprocessor, line 281, in mapURL
Module OFS.Traversable, line 269, in unrestrictedTraverse
- __traceback_info__: ([], 'dev_tour_about.png')
AttributeError: dev_tour_about.png
If the image is removed and added again from the new location, everything will
work fine.
Original issue reported on code.google.com by vsomogyi on 25 Oct 2010 at 9:44
Original issue reported on code.google.com by
vsomogyi
on 25 Oct 2010 at 9:44