Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display mode template breaks if you have checkbox content which is not yet filled in (NOVALUE) #10

Open
miohtama opened this issue Apr 11, 2013 · 1 comment
Labels

Comments

@miohtama
Copy link
Contributor

Release 0.13, collective.z3cform.datagridfield_demos, click Table and cells are read-only

  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: /Users/mikko/code/buildout-cache/eggs/plone.app.z3cform-0.5.8-py2.7.egg/plone/app/z3cform/templates/macros.pt
   - Line 94, Column 46
   - Expression: <PathExpr standard:u'widget/@@ploneform-render-widget'>
   - Names:
      {'args': (),
       'container': <PloneSite at /folder_xxx/xxxngta>,
       'context': <PloneSite at /folder_xxx/xxxngta>,
       'default': <object object at 0x10ea71b20>,
       'here': <PloneSite at /folder_xxx/xxxngta>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x119551368>,
       'request': <HTTPRequest, URL=http://localhost:8080/folder_xxx/xxxngta/demo-collective.z3cform.datagrid-block-edit-display-mode>,
       'root': <Application at >,
       'static': None,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x119896790>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin2'>,
       'view': <Products.Five.metaclass.EditForm10 object at 0x11259fb10>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x11259ff10>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  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 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: /Users/mikko/code/buildout-cache/eggs/plone.app.z3cform-0.5.8-py2.7.egg/plone/app/z3cform/templates/widget.pt
   - Line 36, Column 4
   - Expression: <PathExpr standard:u'widget/render'>
   - Names:
      {'args': (),
       'context': <MultiWidget 'form.widgets.address'>,
       'default': <object object at 0x10ea71b20>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <HTTPRequest, URL=http://localhost:8080/folder_xxx/xxxngta/demo-collective.z3cform.datagrid-block-edit-display-mode>,
       'template': <zope.browserpage.viewpagetemplatefile.ViewPageTemplateFile object at 0x112f72850>,
       'view': <Products.Five.metaclass.RenderWidget object at 0x124f9b4d0>,
       'views': <zope.browserpage.viewpagetemplatefile.ViewMapper object at 0x124f9b490>}
  Module zope.tales.expressions, line 217, in __call__
  Module zope.tales.expressions, line 211, in _eval
  Module z3c.form.widget, line 141, in render
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 821, in do_loop_tal
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 852, in do_condition
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 858, in do_defineMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: /Users/mikko/code/buildout-cache/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/browser/multi_display.pt
   - Line 36, Column 10
   - Expression: <PathExpr standard:u'widget/render'>
   - Names:
      {'args': (),
       'context': {'address': [{'address_type': 'Work',
                                'city': 'Mega City',
                                'country': 'The Old Sod',
                                'dateAdded': datetime.datetime(1981, 8, 17, 6, 0),
                                'line1': 'My Office',
                                'line2': 'Big Office Block',
                                'personCount': 2},
                               {'address_type': 'Home',
                                'city': 'Burbs',
                                'country': 'The Old Sod',
                                'dateAdded': datetime.datetime(1981, 8, 17, 6, 0),
                                'line1': 'Home Sweet Home',
                                'line2': 'Easy Street',
                                'personCount': 4}],
                   'name': 'MY NAME'},
       'default': <object object at 0x10ea71b20>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <HTTPRequest, URL=http://localhost:8080/folder_xxx/xxxngta/demo-collective.z3cform.datagrid-block-edit-display-mode>,
       'template': <zope.browserpage.viewpagetemplatefile.ViewPageTemplateFile object at 0x112efec10>,
       'view': <MultiWidget 'form.widgets.address'>,
       'views': <zope.browserpage.viewpagetemplatefile.ViewMapper object at 0x124f9b710>}
  Module zope.tales.expressions, line 217, in __call__
  Module zope.tales.expressions, line 211, in _eval
  Module z3c.form.object, line 293, in render
  Module z3c.form.widget, line 141, in render
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 821, in do_loop_tal
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: /Users/mikko/code/buildout-cache/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/browser/object_display.pt
   - Line 12, Column 8
   - Expression: <PathExpr standard:u'widget/render'>
   - Names:
      {'args': (),
       'context': None,
       'default': <object object at 0x10ea71b20>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <HTTPRequest, URL=http://localhost:8080/folder_xxx/xxxngta/demo-collective.z3cform.datagrid-block-edit-display-mode>,
       'template': <zope.browserpage.viewpagetemplatefile.ViewPageTemplateFile object at 0x112f18850>,
       'view': <ObjectWidget 'form.widgets.address.0'>,
       'views': <zope.browserpage.viewpagetemplatefile.ViewMapper object at 0x124f9ba10>}
  Module zope.tales.expressions, line 217, in __call__
  Module zope.tales.expressions, line 211, in _eval
  Module z3c.form.widget, line 141, in render
  Module zope.browserpage.viewpagetemplatefile, line 51, in __call__
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 819, in do_loop_tal
  Module zope.tales.tales, line 682, in setRepeat
  Module zope.tales.tales, line 696, in evaluate
   - URL: /Users/mikko/code/buildout-cache/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/browser/checkbox_display.pt
   - Line 19, Column 44
   - Expression: <PathExpr standard:u'view/displayValue'>
   - Names:
      {'args': (),
       'context': {'address_type': 'Work',
                   'billed': <NO_VALUE>,
                   'city': 'Mega City',
                   'country': 'The Old Sod',
                   'dateAdded': datetime.datetime(1981, 8, 17, 6, 0),
                   'line1': 'My Office',
                   'line2': 'Big Office Block',
                   'personCount': 2},
       'default': <object object at 0x10ea71b20>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <HTTPRequest, URL=http://localhost:8080/folder_xxx/xxxngta/demo-collective.z3cform.datagrid-block-edit-display-mode>,
       'template': <zope.browserpage.viewpagetemplatefile.ViewPageTemplateFile object at 0x112ef5f50>,
       'view': <SingleCheckBoxWidget 'form.widgets.address.0.widgets.billed'>,
       'views': <zope.browserpage.viewpagetemplatefile.ViewMapper object at 0x124f9bc50>}
  Module zope.tales.expressions, line 217, in __call__
  Module zope.tales.expressions, line 194, in _eval
  Module zope.tales.expressions, line 124, in _eval
  Module zope.pagetemplate.engine, line 66, in __call__
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: (<SingleCheckBoxWidget 'form.widgets.address.0.widgets.billed'>, 'displayValue')
  Module zope.traversing.adapters, line 42, in traverse
   - __traceback_info__: (<SingleCheckBoxWidget 'form.widgets.address.0.widgets.billed'>, 'displayValue', [])
  Module z3c.form.widget, line 177, in displayValue
TypeError: 'NO_VALUE' object is not iterable
2013-04-11 12:24:38 INFO Plone Debug: xxx_user
@miohtama
Copy link
Contributor Author

Probably z3c.form bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants