Package openflow :: Package plugin :: Module views
[hide private]
[frames] | no frames]

Module views

source code


Author: jnaous

Functions [hide private]
 
aggregate_create(request) source code
 
aggregate_edit(request, agg_id) source code
 
aggregate_crud(request, agg_id=None)
Create/update an OpenFlow Aggregate.
source code
 
aggregate_add_links(request, agg_id)
Show page to add static connections to other aggregates.
source code
 
handle_add_links(request, aggregate, template='openflow/plugin/aggregate_add_links.html', extra_context={})
Perform the actual request.
source code
 
aggregate_add_to_slice(request, agg_id, slice_id)
Add the aggregate to the slice.
source code
 
handle_add_to_slice(request, aggregate, slice)
Perform that actual add_to_slice request.
source code
Variables [hide private]
  logger = logging.getLogger("OpenFlow plugin views")
  TEMPLATE_PATH = 'openflow/plugin'
  __package__ = 'openflow.plugin'
Function Details [hide private]

aggregate_create(request)

source code 
Decorators:
  • @require_objs_permissions_for_view(perm_names= ["can_add_aggregate"], permittee_func= get_user_from_req, target_func= get_queryset_from_class(Aggregate), methods= ["POST", "GET"])

aggregate_edit(request, agg_id)

source code 
Decorators:
  • @require_objs_permissions_for_view(perm_names= ["can_edit_aggregate"], permittee_func= get_user_from_req, target_func= get_queryset(OpenFlowAggregate, "agg_id"), methods= ["POST", "GET"])

aggregate_add_to_slice(request, agg_id, slice_id)

source code 

Add the aggregate to the slice. Check if the slice already has OpenFlowSliceInfo information related to it. If there is, then reuse that.