Пример #1
0
def getItemById(symbol):
    """ Perform a request based on symbol identifier.
    """
    # Perform the request
    a = idb.request("SYMBOLE", symbol)

    # Check the values. Only one result should remain.
    if not checkSet(a):
        return None

    return a.pop()
Пример #2
0
def getItemByPlan(plan, repere):
    """ Perform a request based on plan & repere numbers.
    """
    # Perform the request
    a = idb.request("PLAN", plan)
    a = idb.entrysetRequest(a, "REPERE", repere)

    # Check the values. Only one result should remain.
    if not checkSet(a):
        return None

    return a.pop()
Пример #3
0
def ensDataToItemData(data):
    symbol = edb.getField(data, "SYMB_COMP")
    return idb.request("SYMBOLE", symbol).pop()