Ticket #85 (closed defect: fixed)
handle_user_pages uses get_application() which is not imported
| Reported by: | kleinweby | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | general | Version: | dev |
| Keywords: | Cc: | kontakt@… |
Description
In handle_user_pages (in zine/views/blog.py) on line 426 is the following:
cfg = get_application().cfg
and on line 430 get_application() is used again. But get_application() is not imported in blog.py so that it happends in a error ("NameError?: global name 'get_application' is not defined").
I have looked at other parts of zine and i think, that get_application() has (mostly) replaced with req.app.
Here is the solution. Change line 426 - 432 to the following:
cfg = req.app.cfg
return render_response(
'page_base.html',
page=page,
blog_title=cfg['blog_title'],
show_title=cfg['show_page_title'],
show_children=cfg['show_page_children']
Change History
Note: See
TracTickets for help on using
tickets.