~ubuntu-branches/ubuntu/utopic/horizon/utopic

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-11 08:26:40 UTC
  • mto: (1.2.1) (70.1.1 utopic-proposed)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: package-import@ubuntu.com-20130111082640-mjx6r75udhhiajq3
Tags: upstream-2013.1~g2
ImportĀ upstreamĀ versionĀ 2013.1~g2

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from openstack_dashboard import api
26
26
 
 
27
from .utils import get_int_or_uuid
 
28
 
27
29
 
28
30
ALLOCATE_URL = "horizon:project:access_and_security:floating_ips:allocate"
29
31
 
30
32
 
31
33
class AssociateIPAction(workflows.Action):
32
34
    ip_id = forms.DynamicTypedChoiceField(label=_("IP Address"),
33
 
                                          coerce=int,
 
35
                                          coerce=get_int_or_uuid,
34
36
                                          empty_value=None,
35
37
                                          add_item_link=ALLOCATE_URL)
36
38
    instance_id = forms.ChoiceField(label=_("Instance"))