installing service_layout in an "old" Silva instance results in attribute error on public view

Bug #100926 reported by Joachim Scmitz
12
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Medium
Unassigned

Bug Description

in "old" Silva instance created end of october I installed layout Infrae1.
Attached it to a publication and visited the public view, this results in:

KeyError: model

the reason is that the index.html script does not contain:

# use layout content if a layout has been setup
if renderer == content:
    layout_folder = context.get_layout_folder()
    if layout_folder:
        index = getattr(layout_folder, content)
        return index(model=context, view_method=view_method)

Best would be to insert it automagically, but at least a hint in the
documentation would be very helpfull.

Tags: silva-future
Revision history for this message
Martijn Faassen (faassen) wrote :

moving layout service stuff into the future; we'll hide it in 0.9.3.

Revision history for this message
Kit Blake (kitblake) wrote :

(Old issue cleanup) This is history.

Changed in silva:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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