~ubuntu-branches/ubuntu/utopic/maas/utopic-proposed

« back to all changes in this revision

Viewing changes to src/maasserver/views/combo.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-05-09 22:24:12 UTC
  • mfrom: (1.2.32)
  • Revision ID: package-import@ubuntu.com-20140509222412-0bpexwu9wg3xaxxm
Tags: 1.5.1+bzr2269-0ubuntu1
* New upstream bugfix release
  - Drops upstream patch to try to fix a regression that in reality was
    a hack to fix an issue in django. (LP: #1311433)
* debian/control: Add missing dep on python-crochet for
  maas-cluster-controller. (LP: #1311765)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2012-2014 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2012 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Combo view."""
16
16
    'get_combo_view',
17
17
    ]
18
18
 
19
 
from functools import (
20
 
    partial,
21
 
    update_wrapper,
22
 
    )
 
19
from functools import partial
23
20
import os
24
21
 
25
22
from convoy.combo import (
79
76
    :rtype: callable
80
77
    """
81
78
    location = get_absolute_location(location)
82
 
    # Work around bug 1311433: returning a "partial" as a view causes an
83
 
    # AttributeError about a missing __module__ attribute.  The update_wrapper
84
 
    # solves this.
85
 
    partial_view = partial(
 
79
    return partial(
86
80
        combo_view, location=location, default_redirect=default_redirect)
87
 
    return update_wrapper(partial_view, combo_view)
88
81
 
89
82
 
90
83
def combo_view(request, location, default_redirect=None, encoding='utf8'):