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 default's Multi AR template report #654

Merged
merged 3 commits into from
Feb 15, 2018

Conversation

xispa
Copy link
Member

@xispa xispa commented Feb 14, 2018

Description of the issue/feature this PR addresses

This Pull Request fixes a Traceback that appears when trying to render the default MultiAR report

Current behavior before PR

Traceback (most recent call last):
  File "/home/xispa/senaite/zeocluster/src/senaite.core/bika/lims/browser/analysisrequest/publish.py", line 221, in getGroupedReportTemplate
    embedt, reptemplate = self._renderTemplate()
  File "/home/xispa/senaite/zeocluster/src/senaite.core/bika/lims/browser/analysisrequest/publish.py", line 195, in _renderTemplate
    return embedt, embed(self)
  File "/home/xispa/senaite/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 59, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/xispa/senaite/buildout-cache/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/xispa/senaite/buildout-cache/eggs/five.pt-2.2.4-py2.7.egg/five/pt/engine.py", line 98, in __call__
    return self.template.render(**kwargs)
  File "/home/xispa/senaite/buildout-cache/eggs/z3c.pt-3.1.0-py2.7.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/xispa/senaite/buildout-cache/eggs/Chameleon-3.2-py2.7.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/xispa/senaite/buildout-cache/eggs/Chameleon-3.2-py2.7.egg/chameleon/template.py", line 191, in render
    raise_with_traceback(exc, tb)
  File "/home/xispa/senaite/buildout-cache/eggs/Chameleon-3.2-py2.7.egg/chameleon/template.py", line 171, in render
    self._render(stream, econtext, rcontext)
  File "20fe39995a9a90ce8c808364af65cbc8.py", line 627, in render
AttributeError: 'AnalysisRequestPublishView' object has no attribute '_client_address'

Desired behavior after PR is merged

multi-ar

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

@ramonski ramonski merged commit 81721f0 into senaite:master Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants