Package openflow :: Package plugin :: Module forms :: Class OpenFlowStaticConnectionForm
[hide private]
[frames] | no frames]

Class OpenFlowStaticConnectionForm

source code


A form for selecting a local and a remote interface to create a static bi-directional connection.

Nested Classes [hide private]

Inherited from django.forms.forms.Form: __metaclass__

Instance Methods [hide private]
 
__init__(self, aggregate, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
save_connections(self)
Create two unique unidirectional links between the two interfaces.
source code

Inherited from django.forms.forms.BaseForm: __getitem__, __iter__, __unicode__, add_initial_prefix, add_prefix, as_p, as_table, as_ul, clean, full_clean, has_changed, hidden_fields, is_multipart, is_valid, non_field_errors, visible_fields

Inherited from django.forms.forms.BaseForm (private): _clean_fields, _clean_form, _get_changed_data, _get_errors, _get_media, _html_output, _post_clean, _raw_value

Inherited from django.utils.encoding.StrAndUnicode: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  local_interface = AsLeafClassModelChoiceField(OpenFlowInterfac...
  remote_interface = AsLeafClassModelChoiceField(OpenFlowInterfa...
  base_fields = {'local_interface': <openflow.plugin.forms.AsLea...
Properties [hide private]
  media
Provide a description of all media required to render the widgets on this form

Inherited from django.forms.forms.BaseForm: changed_data, errors

Inherited from object: __class__

Method Details [hide private]

__init__(self, aggregate, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

save_connections(self)

source code 

Create two unique unidirectional links between the two interfaces.

Returns:
tuple of the created connections. If a connection is not created, None is returned for it.

Class Variable Details [hide private]

local_interface

Value:
AsLeafClassModelChoiceField(OpenFlowInterface.objects.all())

remote_interface

Value:
AsLeafClassModelChoiceField(OpenFlowInterface.objects.all())

base_fields

Value:
{'local_interface': <openflow.plugin.forms.AsLeafClassModelChoiceField\
 object at 0x92257ac>, 'remote_interface': <openflow.plugin.forms.AsLe\
afClassModelChoiceField object at 0x9225a4c>}

Property Details [hide private]

media

Provide a description of all media required to render the widgets on this form

Get Method:
unreachable._media(self)