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

Batch Book raises an Error if the Batch inherits from 2 ARs #2063

Closed
ramonski opened this issue Jun 1, 2017 · 0 comments
Closed

Batch Book raises an Error if the Batch inherits from 2 ARs #2063

ramonski opened this issue Jun 1, 2017 · 0 comments

Comments

@ramonski
Copy link
Contributor

ramonski commented Jun 1, 2017

Steps to reproduce

  1. Add a new Batch
  2. Add 2 Request Analysis to inherit from (see screenshot)
  3. Click on the "Batch Book" tab

Current behavior

The following traceback occurs:

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.batch.batchbook, line 115, in __call__
  Module bika.lims.browser.bika_listing, line 766, 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 289, in render
  Module chameleon.template, line 171, in render
  Module 0a1dd898dec927f6c6d4c7157754b785.py, line 453, in render
  Module 9c47494c662b81e21b0615498ae1754c.py, line 1172, in render_master
  Module 9c47494c662b81e21b0615498ae1754c.py, line 484, in render_content
  Module 0a1dd898dec927f6c6d4c7157754b785.py, line 383, in __fill_content_core
  Module five.pt.expressions, line 161, in __call__
  Module bika.lims.browser.bika_listing, line 1059, 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 289, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module 0a0775ba4c52789a9e318052d185f856.py, line 1733, in render
  Module five.pt.expressions, line 154, in __call__
  Module five.pt.expressions, line 126, in traverse
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: ({'id': 'submit'}, 'title')
  Module zope.traversing.adapters, line 50, in traverse
   - __traceback_info__: ({'id': 'submit'}, 'title', ())
LocationError: ({'id': 'submit'}, 'title')

 - Expression: "here/main_template/macros/master"
 - Filename:   ... ib/bika.lims/bika/lims/browser/templates/bika_listing.pt
 - Location:   (line 5: col 21)
 - Source:     metal:use-macro="here/main_template/macros/master"
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "action/title"
 - Filename:   ... a.lims/bika/lims/browser/templates/bika_listing_table.pt
 - Location:   (line 276: col 46)
 - Source:     value action/title;
                     ^^^^^^^^^^^^
 - Arguments:  rows_only: False
               request: <instance - at 0x14a260878>
               actions: <list - at 0x14a6381b8>
               table_only: False
               ViewResults: 1
               EditAnalyses: 1
               toggle_cols: {...} (19)
               container: <ImplicitAcquisitionWrapper batch-1 at 0x14a6beb40>
               specification: <NoneType - at 0x109ea8ea8>
               wrapped_repeat: <SafeMapping - at 0x125ceb260>
               traverse_subpath: <list - at 0x14a646638>
               column_list: <list - at 0x14a6f4128>
               template: <ViewPageTemplateFile - at 0x12506b510>
               nosortclass: nosort
               review_state: {...} (5)
               translate: <function translate at 0x1487c39b0>
               columns: {...} (19)
               klass: sortable column 
               tabindex: <generator tabindex at 0x14971fe60>
               repeat: {...} (0)
               form_id: list
               views: <ViewMapper - at 0x1454effd0>
               args: <tuple - at 0x14a58f250>
               here: <ImplicitAcquisitionWrapper batch-1 at 0x14a6beb40>
               portal: <ImplicitAcquisitionWrapper bikalims at 0x149b140f0>
               user: <ImplicitAcquisitionWrapper - at 0x14a6becd0>
               nothing: <NoneType - at 0x109ea8ea8>
               context: <ImplicitAcquisitionWrapper batch-1 at 0x14a6beb40>
               nr_cols: 20
               roles: <list - at 0x14a646a28>
               default: <object - at 0x109fa9c40>
               modules: <instance - at 0x10ab31248>
               col: pH_AAB003-33
               review_state_id: default
               t: {...} (5)
               sm: <instance - at 0x14a6dc290>
               action: {...} (1)
               target_language: <NoneType - at 0x109ea8ea8>
               root: <ImplicitAcquisitionWrapper Zope at 0x1499fdf50>
               options: {...} (0)
               loop: {...} (3)
               view: <BikaListingTable - at 0x1454efe90>x^

Expected behavior

Works as expected

Screenshot (optional)

test_batch_1_ _bika

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

No branches or pull requests

1 participant