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

Traceback in Worksheet Templates list when there are Instruments assigned #541

Closed
lemoene opened this issue Jan 5, 2018 · 5 comments
Closed

Comments

@lemoene
Copy link
Contributor

lemoene commented Jan 5, 2018

Steps to reproduce

In the demo, navigate to WS Templates in the setup

Current behavior

triggers a site error, 1515146421.980.162960989784

@ramonski
Copy link
Contributor

ramonski commented Jan 5, 2018

Thanks for reporting.

Traceback happens directly on https://senaite.ridingbytes.com/bika_setup/bika_worksheettemplates

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.bika_listing, line 939, 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 191, in render
  Module chameleon.template, line 171, in render
  Module 176e0e5f05234e6e23ec2c5fa376b519.py, line 425, in render
  Module b386bc4d392bd557c0373715f258b088.py, line 1406, in render_master
  Module b386bc4d392bd557c0373715f258b088.py, line 571, in render_content
  Module 176e0e5f05234e6e23ec2c5fa376b519.py, line 355, in __fill_content_core
  Module five.pt.expressions, line 161, in __call__
  Module bika.lims.browser.bika_listing, line 1379, in contents_table
  Module bika.lims.browser.bika_listing, line 1557, in __init__
  Module bika.lims.browser.bika_listing, line 1015, in folderitems
  Module bika.lims, line 212, in wrapper
  Module bika.lims.browser.bika_listing, line 1360, in _folderitems
  Module bika.lims.controlpanel.bika_worksheettemplates, line 82, in folderitem
AttributeError: getTitle

 - Expression: "here/main_template/macros/master"
 - Filename:   ... senaite.core/bika/lims/browser/templates/bika_listing.pt
 - Location:   (line 5: col 21)
 - Source:     metal:use-macro="here/main_template/macros/master"
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7f7f93ed6bd0>
               views: <ViewMapper - at 0x7f7f9213b150>
               modules: <instance - at 0x7f7fbb47f560>
               args: <tuple - at 0x7f7f920b1b90>
               here: <ImplicitAcquisitionWrapper bika_worksheettemplates at 0x7f7f92779a50>
               user: <ImplicitAcquisitionWrapper - at 0x7f7f91f2dd20>
               nothing: <NoneType - at 0x8fd4d0>
               translate: <function translate at 0x7f7f920790c8>
               container: <ImplicitAcquisitionWrapper bika_worksheettemplates at 0x7f7f92779a50>
               request: <instance - at 0x7f7f92668200>
               wrapped_repeat: <SafeMapping - at 0x7f7f92e71050>
               traverse_subpath: <list - at 0x7f7f926c9560>
               default: <object - at 0x7f7fc3174540>
               loop: {...} (2)
               context: <ImplicitAcquisitionWrapper bika_worksheettemplates at 0x7f7f92779a50>
               view: <WorksheetTemplatesView folder_view at 0x7f7f98383090>
               target_language: <NoneType - at 0x8fd4d0>
               root: <ImplicitAcquisitionWrapper Zope at 0x7f7f91ddf820>
               options: {...} (0)

@xispa xispa self-assigned this Jan 8, 2018
@xispa xispa changed the title Site Error. /bika_worksheettemplates Traceback in Worksheet Templates list when there are Worksheet Templates with Instruments assigned Jan 8, 2018
@xispa xispa changed the title Traceback in Worksheet Templates list when there are Worksheet Templates with Instruments assigned Traceback in Worksheet Templates list when there are Instruments assigned Jan 8, 2018
@ramonski
Copy link
Contributor

ramonski commented Jan 9, 2018

@ramonski ramonski closed this as completed Jan 9, 2018
@lemoene
Copy link
Contributor Author

lemoene commented Jan 12, 2018

in the demo currently one cannot leave the Instrument field blank on WS Templates, e.g. https://senaite.ridingbytes.com/bika_setup/bika_worksheettemplates/worksheettemplate-2. not sure and tech dof to be sure it is covered here. I'll open a new on on reply, thanks

@lemoene
Copy link
Contributor Author

lemoene commented Jan 12, 2018

meh, that's probably why i got #509 in the first place too
Opening a new issue regardless, be a good one to easily close

@lemoene
Copy link
Contributor Author

lemoene commented Jan 12, 2018

ignore, No Instrument is there

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

No branches or pull requests

3 participants