Package occi :: Module backend
[hide private]
[frames] | no frames]

Module backend

source code

Backends should derive from this class.

Created on Jun 27, 2011


Author: tmetsch

Classes [hide private]
  KindBackend
A prototype backend which essentially does nothing.
  ActionBackend
A prototype backend which essentially does nothing.
  MixinBackend
A prototype backend which essentially does nothing.
  UserDefinedMixinBackend
A Backend for mixins defined by users.
Functions [hide private]
 
is_related_valid(link)
Verifies that a link is consistent.
source code
 
is_attr_mutable(category, attribute_name)
Checks if an attribute is mutable.
source code
 
is_attr_required(category, attribute_name)
Checks if an attribute is required.
source code
 
is_action_applicable(entity, action)
Returns true if the action is currently applicable.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

is_related_valid(link)

source code 

Verifies that a link is consistent.

link -- The link which should be verified.

is_attr_mutable(category, attribute_name)

source code 

Checks if an attribute is mutable. Return True if so.

category -- The category which defines the attribute. attribute_name -- The name of the attribute.

is_attr_required(category, attribute_name)

source code 

Checks if an attribute is required. Return True if so.

category -- The category which defines the attribute. attribute_name -- The name of the attribute.

is_action_applicable(entity, action)

source code 

Returns true if the action is currently applicable.

entity -- The current entity. action -- The action to test for.