~ubuntu-branches/ubuntu/saucy/maas/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-10-04 12:33:05 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20131004123305-pu2rr8xhnl47m53n
Tags: 1.4+bzr1693+dfsg-0ubuntu1
* New Upstream Release (LP: #1218526)
  - This new upstream release contains fixes and improvements of the
    features approved by the FFe above.
  - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
  - Fixes access of static images over http  (LP: #1236544)
* d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
* d/control: Bump depends on python-django to 1.4. (LP: #1236572)
* d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
  to install maas-dhcp during an ISO install. (LP: #1236786)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    unicode_literals,
10
10
    )
11
11
 
 
12
str = None
 
13
 
12
14
__metaclass__ = type
13
15
__all__ = [
14
16
    "AccountsEdit",
152
154
            if "page" in new_query:
153
155
                del new_query["page"]
154
156
        else:
155
 
            new_query["page"] = str(page_number)
 
157
            new_query["page"] = unicode(page_number)
156
158
        if not new_query:
157
159
            return self.request.path.rsplit("/", 1)[-1] or "."
158
160
        return "?" + new_query.urlencode()
192
194
    :type form_class: django.forms.Form
193
195
    :param redirect_url: The url where the user should be redirected if the
194
196
        form validates successfully.
195
 
    :type redirect_url: basestring
 
197
    :type redirect_url: unicode
196
198
    :param prefix: The prefix of the form.
197
 
    :type prefix: basestring
 
199
    :type prefix: unicode
198
200
    :param success_message: An optional message that will be displayed if the
199
201
        form validates successfully.
200
 
    :type success_message: basestring
 
202
    :type success_message: unicode
201
203
    :param form_kwargs: An optional dict that will passed to the form creation
202
204
        method.
203
205
    :type form_kwargs: dict or None