~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/views.py

[rs=buildbot-poller] automatic merge from stable. Revisions: 14253,
        14254, 14255, 14256, 14257, 14258, 14259 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
                            server_url=None, method=None, principal=None,
83
83
                            query_string=None, cookie=None, request=None,
84
84
                            path_info='/', rootsite=None,
85
 
                            current_request=False):
 
85
                            current_request=False, **kwargs):
86
86
    """Return a view that has already been initialized."""
87
87
    if method is None:
88
88
        if form is None:
92
92
    view = create_view(
93
93
        context, name, form, layer, server_url, method, principal,
94
94
        query_string, cookie, request, path_info, rootsite=rootsite,
95
 
        current_request=current_request)
 
95
        current_request=current_request, **kwargs)
96
96
    view.initialize()
97
97
    return view
98
98