Package expedient :: Package common :: Package permissions :: Module models :: Class Permittee
[hide private]
[frames] | no frames]

Class Permittee

source code


Links permissions to their owners using the contenttypes framework, where permittees are not necessarily django.contrib.auth.models.User instances.

Nested Classes [hide private]
  Meta
  DoesNotExist
  MultipleObjectsReturned

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

Instance Methods [hide private]
 
objects(...)
PermitteeManager for the class
 
__unicode__(self) source code

Inherited from django.db.models.base.Model: __eq__, __hash__, __init__, __ne__, __reduce__, __repr__, __str__, clean, clean_fields, date_error_message, delete, full_clean, prepare_database_save, 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 Variables [hide private]
  _base_manager = <expedient.common.permissions.managers.Permitt...
  _default_manager = <expedient.common.permissions.managers.Perm...
  _meta = <Options for Permittee>
  objectpermission_set = <django.db.models.fields.related.ManyRe...
  permissionownership_set = <django.db.models.fields.related.For...
  permissionrequest_set = <django.db.models.fields.related.Forei...
  projectrole_set = <django.db.models.fields.related.ManyRelated...

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

Instance Variables [hide private]
ForeignKey to ContentType object_type = models.ForeignKey(ContentType)
The ContentType indicating the class of the permittee.
positive int object_id = models.PositiveIntegerField()
The id of the permittee.
varies object = GenericForeignKey("object_type", "object_id")
the object for this permittee.
Properties [hide private]

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

Inherited from object: __class__

Class Variable Details [hide private]

_base_manager

Value:
<expedient.common.permissions.managers.PermitteeManager object at 0x8c\
5fb0c>

_default_manager

Value:
<expedient.common.permissions.managers.PermitteeManager object at 0x8c\
5fb0c>

objectpermission_set

Value:
<django.db.models.fields.related.ManyRelatedObjectsDescriptor object a\
t 0x8c5feec>

permissionownership_set

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

permissionrequest_set

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

projectrole_set

Value:
<django.db.models.fields.related.ManyRelatedObjectsDescriptor object a\
t 0x8d7412c>