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

Fix traceback from log when rendering stickers preview #1533

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

xispa
Copy link
Member

@xispa xispa commented Feb 12, 2020

Description of the issue/feature this PR addresses

The following traceback is displayed in the logs:

2020-02-12 19:56:30 ERROR Zope.SiteErrorLog 1581533790.770.737304526271
http://localhost:9090/senaite/analysisrequests/sticker
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.stickers, line 110, 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 173, in render
  Module chameleon.zpt.template, line 306, in render
  Module chameleon.template, line 209, in render
  Module chameleon.template, line 187, in render
  Module d402a41447f69cd9d5f4e48a0edd52e6.py, line 827, in render
  Module senaite.core.supermodel.model, line 138, in __getattr__
  Module senaite.core.supermodel.model, line 185, in get
  Module senaite.core.supermodel.model, line 171, in get_field
  Module senaite.core.supermodel.model, line 276, in instance
  Module senaite.core.supermodel.model, line 285, in brain
  Module senaite.core.supermodel.model, line 323, in get_brain_by_uid
ValueError: No results found for UID '1aa9f10c4d3d4e0b8ebb7ad339e6257f'

 - Expression: "python:item.getId()"
 - Filename:   ... ite.core/bika/lims/browser/templates/stickers_preview.pt
 - Location:   (line 276: col 39)
 - Source:     ... sticker define="item_id python:item.getId()">

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

2020-02-12 19:56:30 ERROR Zope.SiteErrorLog 1581533790.770.737304526271
http://localhost:9090/senaite/analysisrequests/sticker
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.stickers, line 110, 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 173, in render
  Module chameleon.zpt.template, line 306, in render
  Module chameleon.template, line 209, in render
  Module chameleon.template, line 187, in render
  Module d402a41447f69cd9d5f4e48a0edd52e6.py, line 827, in render
  Module senaite.core.supermodel.model, line 138, in __getattr__
  Module senaite.core.supermodel.model, line 185, in get
  Module senaite.core.supermodel.model, line 171, in get_field
  Module senaite.core.supermodel.model, line 276, in instance
  Module senaite.core.supermodel.model, line 285, in brain
  Module senaite.core.supermodel.model, line 323, in get_brain_by_uid
ValueError: No results found for UID '1aa9f10c4d3d4e0b8ebb7ad339e6257f'

 - Expression: "python:item.getId()"
 - Filename:   ... ite.core/bika/lims/browser/templates/stickers_preview.pt
 - Location:   (line 276: col 39)
 - Source:     ... sticker define="item_id python:item.getId()">
@xispa xispa added the Cleanup 🧹 Code cleanup and refactoring label Feb 12, 2020
@xispa xispa requested a review from ramonski February 12, 2020 19:09
@ramonski ramonski merged commit d84104f into master Feb 12, 2020
@ramonski ramonski deleted the fix-traceback-stickers branch February 12, 2020 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup 🧹 Code cleanup and refactoring
Development

Successfully merging this pull request may close these issues.

2 participants