Package expedient :: Package clearinghouse :: Package project :: Module models :: Class Project
[hide private]
[frames] | no frames]

Class Project

source code


A project is a collection of users working on the same set of slices.

Nested Classes [hide private]
  DoesNotExist
  MultipleObjectsReturned

Inherited from django.db.models.base.Model: __metaclass__

Instance Methods [hide private]
 
objects(...)
A ProjectManager instance.
 
save(self, *args, **kwargs)
Override the default save method to enforce permissions.
source code
 
delete(self, *args, **kwargs)
Override the default delete method to enforce permissions.
source code
 
_get_aggregates(self)
Get all aggregates that can be used by the project (i.e.
source code
 
_get_researchers(self)
Get all users who have the 'researcher' role for the project
source code
 
_get_owners(self)
Get all users who have the 'owner' role for the project
source code
 
_get_members(self)
Get all users who have some permission in the project.
source code
 
_get_permittees(self)
Get all permittees that have some permission in the project.
source code
 
__unicode__(self) source code
 
get_update_url(*args, **kwargs)
Returns the URL to update project info
 
get_detail_url(*args, **kwargs)
Returns the URL for the project detail page
 
get_delete_url(*args, **kwargs)
Returns the URL to delete a project
 
get_agg_add_url(*args, **kwargs)
Returns the URL to add an aggregate to a project
 
get_agg_update_url(*args, **kwargs)
Returns URL to update an aggregate's info related to the project
 
get_agg_remove_url(*args, **kwargs)
Returns URL to remove aggregate from project
 
get_member_add_url(*args, **kwargs)
 
get_member_update_url(*args, **kwargs)
 
get_member_remove_url(*args, **kwargs)
 
_base_manager(...)

Inherited from django.db.models.base.Model: __eq__, __hash__, __init__, __ne__, __reduce__, __repr__, __str__, clean, clean_fields, date_error_message, full_clean, prepare_database_save, save_base, serializable_value, unique_error_message, validate_unique

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _get_unique_checks, _perform_date_checks, _perform_unique_checks, _set_pk_val

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

Class Methods [hide private]
 
get_create_url(*args, **kwargs)
Returns the URL to create projects
source code
Class Variables [hide private]
  _default_manager = <expedient.clearinghouse.project.models.Pro...
  _meta = <Options for Project>
  projectrole_set = <django.db.models.fields.related.ForeignRela...
  slice_set = <django.db.models.fields.related.ForeignRelatedObj...

Inherited from django.db.models.base.Model (private): _deferred

Instance Variables [hide private]
str name = models.CharField(max_length= 200, unique= True)
The name of the project
str description = models.TextField()
Short description of the project
QuerySet of Aggregates aggregates
Read-only property returning all aggregates that can be used by the project (i.e.
QuerySet of Users. researchers
Read-only property returning all users that have the 'researcher' role for the project.
QuerySet of Users. owners
Read-only property returning all users that have the 'owner' role for the project.
QuerySet of Users. members
Read-only property returning all users that have some permission in the project.
QuerySet of Permittees. members_as_permittees
Read-only property returning all users that have some permission in the project as Permittee instances.
Properties [hide private]

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Method Details [hide private]

save(self, *args, **kwargs)

source code 

Override the default save method to enforce permissions.

Overrides: django.db.models.base.Model.save

delete(self, *args, **kwargs)

source code 

Override the default delete method to enforce permissions.

Overrides: django.db.models.base.Model.delete

_get_aggregates(self)

source code 

Get all aggregates that can be used by the project (i.e. for which the project has the "can_use_aggregate" permission).

get_create_url(*args, **kwargs)
Class Method

source code 

Returns the URL to create projects

Decorators:
  • @models.permalink

get_update_url(*args, **kwargs)

 

Returns the URL to update project info

Decorators:
  • @models.permalink

get_detail_url(*args, **kwargs)

 

Returns the URL for the project detail page

Decorators:
  • @models.permalink

get_delete_url(*args, **kwargs)

 

Returns the URL to delete a project

Decorators:
  • @models.permalink

get_agg_add_url(*args, **kwargs)

 

Returns the URL to add an aggregate to a project

Decorators:
  • @models.permalink

get_agg_update_url(*args, **kwargs)

 

Returns URL to update an aggregate's info related to the project

Decorators:
  • @models.permalink

get_agg_remove_url(*args, **kwargs)

 

Returns URL to remove aggregate from project

Decorators:
  • @models.permalink

get_member_add_url(*args, **kwargs)

 
Decorators:
  • @models.permalink

get_member_update_url(*args, **kwargs)

 
Decorators:
  • @models.permalink

get_member_remove_url(*args, **kwargs)

 
Decorators:
  • @models.permalink

Class Variable Details [hide private]

_default_manager

Value:
<expedient.clearinghouse.project.models.ProjectManager object at 0x8d6\
d5cc>

projectrole_set

Value:
<django.db.models.fields.related.ForeignRelatedObjectsDescriptor objec\
t at 0x8d74a2c>

slice_set

Value:
<django.db.models.fields.related.ForeignRelatedObjectsDescriptor objec\
t at 0x8d7ed8c>

Instance Variable Details [hide private]

aggregates

Read-only property returning all aggregates that can be used by the project (i.e. for which the project has the "can_use_aggregate" permission).
Get Method:
_get_aggregates(self) - Get all aggregates that can be used by the project (i.e.

researchers

Read-only property returning all users that have the 'researcher' role for the project.
Get Method:
_get_researchers(self) - Get all users who have the 'researcher' role for the project

owners

Read-only property returning all users that have the 'owner' role for the project.
Get Method:
_get_owners(self) - Get all users who have the 'owner' role for the project

members

Read-only property returning all users that have some permission in the project.
Get Method:
_get_members(self) - Get all users who have some permission in the project.

members_as_permittees

Read-only property returning all users that have some permission in the project as Permittee instances.
Get Method:
_get_permittees(self) - Get all permittees that have some permission in the project.