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

Worksheet: switch to transposed layout raises an Error #421

Closed
ramonski opened this issue Nov 28, 2017 · 0 comments
Closed

Worksheet: switch to transposed layout raises an Error #421

ramonski opened this issue Nov 28, 2017 · 0 comments

Comments

@ramonski
Copy link
Contributor

Steps to reproduce

  • Create a new Worksheet and add some Analyses
  • Switch the layout to transposed

Current behavior

Traceback occurs

Expected behavior

Table get transposed

Traceback

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module bika.lims.browser.worksheet.views.results, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 171, in render
  Module 4b2801b2226530702de479386ff8d61e.py, line 1546, in render
  Module 0034bb877f79b50c975c545e0cf578c5.py, line 1392, in render_master
  Module 0034bb877f79b50c975c545e0cf578c5.py, line 559, in render_content
  Module 4b2801b2226530702de479386ff8d61e.py, line 1439, in __fill_content_core
  Module five.pt.expressions, line 161, in __call__
  Module bika.lims.browser.worksheet.views.analyses_transposed, line 34, in contents_table
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module e6c8514c5f2bf4bd3cc8ff935b32f60d.py, line 794, in render
  Module five.pt.expressions, line 161, in __call__
  Module bika.lims.browser.worksheet.views.analyses_transposed, line 153, in get_workflow_actions
KeyError: 'hide_transitions'

 - Expression: "view/Analyses/contents_table"
 - Filename:   ... ika/lims/browser/worksheet/views/../templates/results.pt
 - Location:   (line 139: col 33)
 - Source:     ... replace="structure view/Analyses/contents_table"/>
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "view/get_workflow_actions"
 - Filename:   ... wser/worksheet/views/../templates/analyses_transposed.pt
 - Location:   (line 68: col 52)
 - Source:     tal:define="actions view/get_workflow_actions;
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  modules: <instance - at 0x7fdf82dfc680>
               loop: {...} (3)
               ViewResults: 1
               EditAnalyses: 1
               form_id: analyses_form
               rows: <list - at 0x7fdf2c501710>
               container: <ImplicitAcquisitionWrapper WS-0005 at 0x7fdf2c3c1140>
               sm: <SecurityManager - at 0x7fdf2e15ae60>
               wrapped_repeat: <SafeMapping - at 0x7fdf506f7af8>
               traverse_subpath: <list - at 0x7fdf2d357ab8>
               template: <ViewPageTemplateFile - at 0x7fdf60480d90>
               review_state: {...} (5)
               translate: <function translate at 0x7fdf2d39f398>
               repeat: {...} (0)
               toggle_cols: {...} (11)
               views: <ViewMapper - at 0x7fdf3527a0d0>
               args: <tuple - at 0x7fdf2d28c190>
               here: <ImplicitAcquisitionWrapper WS-0005 at 0x7fdf2c3c1140>
               user: <ImplicitAcquisitionWrapper - at 0x7fdf7089f9b0>
               nothing: <NoneType - at 0x91dfd0>
               nr_cols: 12
               roles: <list - at 0x7fdf2c509bd8>
               default: <object - at 0x7fdf8a400500>
               request: <instance - at 0x7fdf2c57d9e0>
               options: {...} (0)
               review_state_id: default
               r: {...} (7)
               t: {...} (5)
               context: <ImplicitAcquisitionWrapper WS-0005 at 0x7fdf2c3c1140>
               view: <AnalysesTransposedTable - at 0x7fdf2d0a5090>
               target_language: <NoneType - at 0x91dfd0>
               root: <ImplicitAcquisitionWrapper Zope at 0x7fdf703ff2d0>
               col: DueDate
               tabindex: <generator tabindex at 0x7fdf2cf6f050>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant