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

Class PermissionTestClass

source code


Dummy class used for tests.

Nested Classes [hide private]
  DoesNotExist
  MultipleObjectsReturned

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

Instance Methods [hide private]
 
get_val_x2(obj, *args, **kw)
Wrapper for the called method that checks the permissions before calling the method.
source code
 
get_val_x3_other_val(obj, *args, **kw)
Wrapper for the called method that checks the permissions before calling the method.
source code
 
get_val_x4(obj, *args, **kw)
Wrapper for the called method that checks the permissions before calling the method.
source code
 
get_val_x5_username(obj, *args, **kw)
Wrapper for the called method that checks the permissions before calling the method.
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]
  val = models.IntegerField()
  _base_manager = <django.db.models.manager.Manager object at 0x...
  _default_manager = <django.db.models.manager.Manager object at...
  _meta = <Options for PermissionTestClass>

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

Properties [hide private]

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

Inherited from object: __class__

Method Details [hide private]

get_val_x2(obj, *args, **kw)

source code 

Wrapper for the called method that checks the permissions before calling the method.

Decorators:
  • @require_obj_permissions_for_method("user_kw", ["can_get_x2", "can_read_val"])

get_val_x3_other_val(obj, *args, **kw)

source code 

Wrapper for the called method that checks the permissions before calling the method.

Decorators:
  • @require_obj_permissions_for_method("user_kw", ["can_get_x3"])

get_val_x4(obj, *args, **kw)

source code 

Wrapper for the called method that checks the permissions before calling the method.

Decorators:
  • @require_obj_permissions_for_method("test_kw", ["can_get_x4"])

get_val_x5_username(obj, *args, **kw)

source code 

Wrapper for the called method that checks the permissions before calling the method.

Decorators:
  • @require_obj_permissions_for_method("user_kw", ["can_get_x5", "can_read_val"])

Class Variable Details [hide private]

_base_manager

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

_default_manager

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