Ejemplo n.º 1
0
def createUser(*args):
    action = args[2].createUser
    user = action.user
    address = get_address(args[3], user.key, USERTYPE)
    container = protos.UserContainer()
    return user, address, container
Ejemplo n.º 2
0
def create_log(*args):
    action = args[2].createlog()
    log = action.log
    address = get_address(args[3], log.uuid, L0GTYPE)
    container = protos.LogContainero()
    return log, address, container
Ejemplo n.º 3
0
def create_concept(*args):
    action = args[2].createConcept
    concept = action.concept
    address = get_address(args[3], concept.uuid, CONCEPTTYPE)
    container = protos.ConceptContainer()
    return concept, address, container
Ejemplo n.º 4
0
def create_entity(*args):
    action = args[2].createEntity
    entity = action.entity
    address = get_address(args[3], entity.uuid, ENTITYTYPE)
    container = protos.EntityContainer()
    return entity, address, container
Ejemplo n.º 5
0
def createRole(*args):
    action = args[2].createRole
    role = action.role
    address = get_address(args[3], role.uuid, ROLETYPR)
    container = protos.RoleContainer()
    return role, address, container