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

Class PermissionRequest

source code


A request from a auth.models.User on behalf of a Permittee to obtain some permission for a particular target.

Nested Classes [hide private]
  DoesNotExist
  MultipleObjectsReturned

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

Instance Methods [hide private]
 
allow(self, can_delegate=False) source code
 
deny(self) source code
 
objects(...)

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 = <django.db.models.manager.Manager object at 0x...
  _default_manager = <django.db.models.manager.Manager object at...
  _meta = <Options for PermissionRequest>

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

Instance Variables [hide private]
django.contrib.auth.models.User requesting_user = models.ForeignKey(User, related_name= "sent_...
the user requesting the permission be given to permittee.
Permittee permittee = models.ForeignKey(Permittee)
The object that will receive the permission if granted.
django.contrib.auth.models.User permission_owner = models.ForeignKey(User, related_name= "rece...
The owner who should grant the permission.
ObjectPermission requested_permission = models.ForeignKey(ObjectPermission)
The permission requested.
str message = models.TextField(default= "", blank= True)
a message to the permission owner.
Properties [hide private]

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

Inherited from object: __class__

Class Variable Details [hide private]

_base_manager

Value:
<django.db.models.manager.Manager object at 0x8c6696c>

_default_manager

Value:
<django.db.models.manager.Manager object at 0x8c6696c>

Instance Variable Details [hide private]

requesting_user

the user requesting the permission be given to permittee.
Type:
django.contrib.auth.models.User
Value:
models.ForeignKey(User, related_name= "sent_permission_requests")

permission_owner

The owner who should grant the permission.
Type:
django.contrib.auth.models.User
Value:
models.ForeignKey(User, related_name= "received_permission_requests")