tales "provider" not work in ZPT

Bug #178781 reported by Garanin
4
Affects Status Importance Assigned to Milestone
BlueBream
New
Undecided
Unassigned
Zope 3
Won't Fix
Undecided
Unassigned
zope.contentprovider
Invalid
Undecided
Unassigned

Bug Description

I create simple contentprovider "mytest" and try use in ZPT:

<tal:block content="provider:mytest"/>

result: crash
....
  File "/home/os/WORK/Zope3.3/lib/python/zope/contentprovider/tales.py", line 57, in __call__
    view = econtext.vars['view']
KeyError: 'view'
.....

solution: in zope/contentprovider/tales.py", line 57:
     view = econtext.vars.get('view')

Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.contentprovider project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.contentprovider.

Changed in zope.contentprovider:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.