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()
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()
def ensDataToItemData(data): symbol = edb.getField(data, "SYMB_COMP") return idb.request("SYMBOLE", symbol).pop()