|
From: floseries <fr...@lo...> - 2010-05-18 13:16:09
|
Hi,
I'm not sure, if this is the right forum for my article, but maybe it's
known by experts of this forum.
Please refer me if advisable to a better fitting forum.
And I have no idea what will be the best way analyzing the problem.
I'm getting
TypeError: iterable argument required
when calling the edit image action.
I'm using Plone 3.3.5 under Ubuntu 8.04
Extra products and packages are imported and installed in one of two Plone
sites of the Zope instance. I cover here only those products which seems to
be involved in image processing:
python package: flickrapi and gdata (latest ones with easy install)
ImageRepository 0.9
plone.app.imaging 1.0b10
Collage 1.2.3
collective.plonetruegallery 0.8.1a3
collective.dancing 0.8.16-1
plonetruegallery didn't work, thus it was taken out again and has never been
installed via GenericSetup. But I'm not sure, if this has maybe caused the
problem. plonetruegallery and dancing could get in trouble because of
different versions used from other packages.
For one site all products and packages except plonetruegallery have been
installed via GenericSetup.
I tried to create and edit a plone image object within the virgin looking
Plone site (No installation through GenericSetup made for this site). All
other actions on image content type are ok, also for other content types.
Activating Edit Image causes following traceback:
----------------------- start traceback
--------------------------------------
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.CMFFormController.FSControllerPageTemplate, line 90, in
__call__
Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in
_call
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 216, in _exec
Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
Module Products.PageTemplates.PageTemplate, line 98, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
- Warning: Macro expansion failed
- Warning: exceptions.KeyError: 'macro'
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
<snip>
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL:
file:/...Plone/buildout-cache/eggs/Products.Archetypes-1.5.15-py2.4.egg/Products/Archetypes/skins/archetypes/widgets/image.pt
- Line 12, Column 6
- Expression: <PythonExpr widget.preview_tag(context, field)>
- Names:
{'container': <PloneSite at /ekglorsch>,
'context': <ATImage at
/ekglorsch/kirche/archiv/Kirche-im-Winter-2.jpg>,
'default': ,
'here': <ATImage at /ekglorsch/kirche/archiv/Kirche-im-Winter-2.jpg>,
'loop': {u'field': <Products.PageTemplates.Expressions.PathIterator
object at 0x2aaaacb7f910>,
u'fieldset':
<Products.PageTemplates.Expressions.PathIterator object at 0x2878e490>},
'nothing': None,
'options': {'args': (),
'state':
<Products.CMFFormController.ControllerState.ControllerState object at
0x2881de10>},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at
0x2aaaacd60830>,
'request': <HTTPRequest,
URL=http://www.domain.de/kirche/archiv/Kirche-im-Winter-2.jpg/atct_edit>,
'root': <Application at >,
'template': <FSControllerPageTemplate at /ekglorsch/atct_edit used
for /ekglorsch/kirche/archiv/Kirche-im-Winter-2.jpg>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
- __traceback_info__: widget.preview_tag(context, field)
Module PythonExpr, line 1, in <expression>
Module Products.Archetypes.Widget, line 710, in preview_tag
TypeError: iterable argument required
----------------------- end traceback --------------------------------------
In Widget.py line 710 on will find:
def preview_tag(self, instance, field):
"""Return a tag for a preview image, or None if no preview is
found."""
img=field.get(instance)
if not img:
return None
line 710: ---------------------------------------------
if self.preview_scale in field.sizes:
return field.tag(instance, scale=self.preview_scale)
if img.getSize()<=self.display_threshold:
return field.tag(instance)
return None
Regards, Fritz
--
View this message in context: http://plone.293351.n2.nabble.com/TypeError-calling-Edit-Image-no-idea-tp5069891p5069891.html
Sent from the Archetypes mailing list archive at Nabble.com.
|