| Trees | Indices | Help |
|
|---|
|
|
Holds information about an aggregate. Needs to be extended by plugins.
|
|||
| Meta | |||
| DoesNotExist | |||
| Extend | |||
| MultipleObjectsReturned | |||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
information = Information about the aggregate. |
|||
_default_manager = <expedient.common.extendable.models.Extenda
|
|||
_meta = <Options for Aggregate>
|
|||
dummyaggregate = <django.db.models.fields.related.SingleRelate
|
|||
geniaggregate = <django.db.models.fields.related.SingleRelated
|
|||
openflowaggregate = <django.db.models.fields.related.SingleRel
|
|||
resource_set = <django.db.models.fields.related.ForeignRelated
|
|||
|
Inherited from Inherited from |
|||
|
|||
str
|
name = models.CharField(max_length= 200, unique= True, help_tehuman-readable name of the Aggregate |
||
models.ImageField
|
logo = models.ImageField('Logo', upload_to= settings.AGGREGATELogo for the aggregate (an uploaded file). |
||
| Text Field |
description = models.TextField(default= "")Description of this aggregate |
||
| a string that is understandable by Google Maps. |
location = models.CharField("Geographic Location", max_length=The location of the aggregate. |
||
bool
|
available = models.BooleanField("Available", default= True, heIs the aggregate available for use? |
||
QuerySet of Users.
|
managers A read-only property that returns a queryset of all user allowed to edit the aggregate (i.e. |
||
QuerySet of Slices.
|
slice_set A read-only property that returns a queryset of all slices allowed to use the aggregate (i.e. |
||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Override the default save method to enforce permissions.
|
Override the default delete method to enforce permissions.
|
Checks whether the aggregate is available or not.
|
Get the prefix to append to the beginning of url names when getting default urls. By default this returns the application name. |
Get the URL to use when deleting the project from the Aggregate List.
This function will first check if there is a URL defined as
<app_label>_aggregate_delete and return that if it exists,
attaching "?next=<
|
Gives the aggregate a chance to request additional information for a
project. This method should return a URL to redirect to where the user
can create or update the additional information the aggregate needs. When
done, the view at that URL should use the
from expedient.common.permissions.shortcuts import give_permission_to
give_permission_to("can_use_aggregate", self.as_leaf_class(), project)
and then it should redirect to If no extra information is needed, this function can return
Unless overridden in a subclass, this function will look for a url
with name <app_name>_aggregate_project_add by reversing the name
with it parameters 'agg_id' and 'proj_id'. It will append
'?next=<next>' to the URL if found. Otherwise, it simply gives the
permission to the project and returns |
Similar to add_to_project but does the reverse, deleting the permission from the project using:
from expedient.common.permissions.shortcuts import delete_permission
delete_permission("can_use_aggregate", self.as_leaf_class(), project)
and then redirecting to |
Works exactly the same as remove_from_project but for a slice. It stops the slice if not overridden. Subclasses should stop the slice before removing the permission. |
Works exactly the same as remove_from_project but for a user. Does not stop any slices. |
Start the slice in the actual resources. Subclasses overriding this method should call the parent class to ensure permission checks. |
Take out the resource reservation from the aggregates. Subclasses overriding this method should call the parent class to ensure permission checks. |
|
|
|||
informationInformation about the aggregate. Used when displaying information about the type. Should be overriden.
|
_default_manager
|
dummyaggregate
|
geniaggregate
|
openflowaggregate
|
resource_set
|
|
|||
namehuman-readable name of the Aggregate
|
logoLogo for the aggregate (an uploaded file).
|
locationThe location of the aggregate.
|
availableIs the aggregate available for use?
|
managersA read-only property that returns a queryset of all user allowed to edit the aggregate (i.e. have the "can_edit_aggregate" permission for this aggregate).
|
slice_setA read-only property that returns a queryset of all slices allowed to use the aggregate (i.e. have the "can_use_aggregate" permission for this aggregate).
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 18 13:09:53 2011 | http://epydoc.sourceforge.net |