TypeError: 'NoneType' object is not iterable on sortable input widget #203

Closed
hvelarde opened this Issue May 3, 2013 · 0 comments

Comments

Projects
None yet
3 participants
@hvelarde
Member

hvelarde commented May 3, 2013

when you have no images on the gallery, and you try to edit the tile, you get the following error:

ERROR Zope.SiteErrorLog 1367608749.650.653074095582 http://localhost:8080/Plone/capa/@@edit-tile/rba.galleria/fca2849812424b97b4a0a7f49226e349
Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module plone.z3cform.layout, line 70, in __call__
  Module plone.z3cform.layout, line 64, in update
  Module plone.app.tiles.browser.base, line 60, in render
  Module z3c.form.form, line 157, in render
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 149, in render
  Module chameleon.zpt.template, line 257, in render
  Module chameleon.template, line 172, in render
  Module bbba7d092d2bc4d06335f65fcf541e2c40302e95, line 92, in render
  Module fd68be7846e560da0c36a12482bbf5deeebfce2f, line 1718, in render_titlelessform
  Module fd68be7846e560da0c36a12482bbf5deeebfce2f, line 452, in render_fields
  Module fd68be7846e560da0c36a12482bbf5deeebfce2f, line 127, in render_widget_rendering
  Module fd68be7846e560da0c36a12482bbf5deeebfce2f, line 1030, in render_field
  Module five.pt.expressions, line 161, in __call__
  Module Products.Five.browser.metaconfigure, line 476, in __call__
  Module zope.browserpage.viewpagetemplatefile, line 83, in __call__
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 149, in render
  Module chameleon.zpt.template, line 257, in render
  Module chameleon.template, line 172, in render
  Module c18efb8cc9e53085a9b1bf1bd341667e0e684771, line 421, in render
  Module five.pt.expressions, line 161, in __call__
  Module collective.cover.widgets.textlinessortable, line 25, in render
  Module zope.browserpage.viewpagetemplatefile, line 83, in __call__
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 149, in render
  Module chameleon.zpt.template, line 257, in render
  Module chameleon.template, line 190, in render
  Module chameleon.template, line 172, in render
  Module ba403b6c2a0ff946227885b2556ef610ffbe4811, line 499, in render
  Module five.pt.expressions, line 161, in __call__
  Module collective.cover.widgets.textlinessortable, line 28, in sort_results
TypeError: 'NoneType' object is not iterable

 - Expression: "widget/@@ploneform-render-widget"
 - Filename:   ... rm-0.6.2-py2.7.egg/plone/app/z3cform/templates/macros.pt
 - Location:   (94:81)
 - Source:     ... place="structure widget/@@ploneform-render-widget"/>
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "view/sort_results"
 - Filename:   ... egg/collective/cover/widgets/textlines_sortable_input.pt
 - Location:   (47:32)
 - Source:     <tal:items repeat="item view/sort_results">
                                       ^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               context: {...} (5)
               views: <ViewMapper - at 0x7ff641847210>
               modules: <TraversableModuleImporter - at 0x28ef390>
               args: <tuple - at 0x7ff641635f50>
               nothing: <NoneType - at 0x776df0>
               target_language: pt_BR
               default: <object - at 0x7ff65d051b50>
               request: <instance - at 0x7ff640555170>
               wrapped_repeat: {...} (0)
               loop: {...} (0)
               template: <ViewPageTemplateFile - at 0x92c3a10>
               translate: <function translate at 0x7ff6489536e0>
               options: {...} (0)
               view: <TextLinesSortableWidget uuids at 0x7ff641865190>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment