~ubuntu-branches/ubuntu/trusty/horizon/trusty-updates

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman
  • Date: 2013-09-06 11:59:43 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20130906115943-h3td0l7tp16mb9oc
Tags: 1:2013.2~b3-0ubuntu1
* New upstream release.
* debian/control: Minimum python-openstack-auth version >= 1.1.1.
* debian/control: Add python-troveclient.
* debian/static: Refresh static assets for 2013.2~b3.
* debian/patches: ubuntu_local_settings.patch -> ubuntu_settings.patch, also
  patch location of secret key in openstack_dashboard/settings.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import logging
22
22
 
23
 
from django.core.urlresolvers import reverse
24
 
from django.utils.translation import ugettext_lazy as _
 
23
from django.core.urlresolvers import reverse  # noqa
 
24
from django.utils.translation import ugettext_lazy as _  # noqa
25
25
 
26
26
from horizon import exceptions
27
27
from horizon import forms
50
50
            messages.success(request, _('Snapshot "%(name)s" created for '
51
51
                                        'instance "%(inst)s"') % vals)
52
52
            return snapshot
53
 
        except:
 
53
        except Exception:
54
54
            redirect = reverse("horizon:project:instances:index")
55
55
            exceptions.handle(request,
56
56
                              _('Unable to create snapshot.'),