Package Camelot :: Package camelot :: Package model :: Module type_and_status
[frames] | no frames]

Module type_and_status

source code

Created on Sep 25, 2009

@author: Erik De Rijcke

Functions
 
get_status_class(cls_name)
Returns: the status class used for this entity
source code
 
create_type_3_status_mixin(status_attribute)
Create a class that can be subclassed to provide a class that has a type 3 status with methods to manipulate and review its status :param status_attribute: the name of the type 3 status attribute
source code
 
type_3_status(statusable_entity, metadata, collection, verbose_entity_name=None, enumeration=None)
Creates a new type 3 status related to the given entity :statusable_entity: A string referring to an entity. :enumeration: if this parameter is used, no status type Entity is created, but the status type is described by the enumeration.
source code
 
entity_type(typable_entity, metadata, collection, verbose_entity_name=None)
Creates a new type related to the given entity. .. typeable_entity:: A string referring to an entity.
source code
Variables
  __status_classes__ = {}
  __package__ = 'Camelot.camelot.model'
Function Details

get_status_class(cls_name)

source code 
Parameters:
  • cls_name - an Entity class name
Returns:
the status class used for this entity