Ejemplo n.º 1
0
def get_temporal_entity_type_by_name(name):
    entity_type = entities_service.get_entity_type_by_name(name)
    if entity_type is None:
        cache.cache.delete_memoized(entities_service.get_entity_type_by_name,
                                    name)
        entity_type = entities_service.get_entity_type_by_name(name)
    return entity_type
Ejemplo n.º 2
0
 def test_get_entity_type_by_name(self):
     entity_type = \
         entities_service.get_entity_type_by_name(self.asset_type.name)
     self.assertEquals(entity_type, self.asset_type.serialize())
Ejemplo n.º 3
0
def get_camera_type():
    return entities_service.get_entity_type_by_name("Camera")
Ejemplo n.º 4
0
def get_scene_type():
    return entities_service.get_entity_type_by_name("Scene")
Ejemplo n.º 5
0
def get_shot_type():
    return entities_service.get_entity_type_by_name("Shot")
Ejemplo n.º 6
0
def get_sequence_type():
    return entities_service.get_entity_type_by_name("Sequence")
Ejemplo n.º 7
0
def get_episode_type():
    return entities_service.get_entity_type_by_name("Episode")