~ubuntu-branches/ubuntu/precise/horizon/precise-updates

« back to all changes in this revision

Viewing changes to horizon/dashboards/nova/images_and_snapshots/snapshots/forms.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman, Adrien Cunin
  • Date: 2012-04-04 07:21:15 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120404072115-lb9v3gq3yv93ern2
Tags: 2012.1~rc2-0ubuntu1
[ Chuck Short ]
* New usptream release.
* debian/control: Use python-cherrypy3
* debian/rules: Update pythonpath in order to run tests.
* debian/patches/fix-coverage-binary-name.patch: Make the testsuite
  run.
* debian/rules: Fail build if tests fail.

[ Adam Gandelman ]
* debian/control: Add python-memcache 
* debain/dashboard.conf: Update to match current upstream documentation
  (LP: #966069)

[ Adrien Cunin ]
* Renamed Apache config file from dashboard.conf to openstack-dashboard.conf
  (LP: #965410)
  - Updated post{inst,rm} and added preinst to handle correctly the rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from django import shortcuts
24
24
from django.core.urlresolvers import reverse
25
25
from django.contrib import messages
26
 
from django.utils.translation import ugettext as _
 
26
from django.utils.translation import ugettext_lazy as _
27
27
 
28
28
from horizon import api
29
29
from horizon import exceptions
35
35
 
36
36
class CreateSnapshot(forms.SelfHandlingForm):
37
37
    tenant_id = forms.CharField(widget=forms.HiddenInput())
38
 
    instance_id = forms.CharField(widget=forms.TextInput(
39
 
                                  attrs={'readonly': 'readonly'}))
 
38
    instance_id = forms.CharField(label=_("Instance ID"),
 
39
                                  widget=forms.TextInput(
 
40
                                        attrs={'readonly': 'readonly'}))
40
41
    name = forms.CharField(max_length="20", label=_("Snapshot Name"))
41
42
 
42
43
    def handle(self, request, data):