Beispiel #1
0
def getAliasWithName(plat, name):
    return sendReceiveReq(getTranslateUrl(),
                          gdata={
                              "cmd": "getAliasWithName",
                              "platform": plat,
                              "name": name
                          })
Beispiel #2
0
def getAliasWithInt(plat, int):
    return sendReceiveReq(getTranslateUrl(),
                          gdata={
                              "cmd": "getAliasWithInt",
                              "platform": plat,
                              "int": int
                          })
Beispiel #3
0
def getIntWithName(name):
    return int(
        sendReceiveReq(getTranslateUrl(),
                       gdata={
                           "cmd": "getIntWithName",
                           "name": name
                       }))
Beispiel #4
0
def getNameWithAlias(plat, alias):
    return sendReceiveReq(getTranslateUrl(),
                          gdata={
                              "cmd": "getNameWithAlias",
                              "platform": plat,
                              "alias": alias
                          })
Beispiel #5
0
def selectPaths(plat1, plat2):
    return sendReceiveReq(getPathDBUrl(),
                          'selectPaths&plat1{}&plat2={}'.format(plat1, plat2))
Beispiel #6
0
def selectMonitors(user):
    return sendReceiveReq(getPathDBUrl(),
                          method="post",
                          gdata={"cmd": "selectMonitors"},
                          pdata={"uid": user})
Beispiel #7
0
def selectUsers():
    return sendReceiveReq(getPathDBUrl(), gdata={"cmd": "selectUsers"})
Beispiel #8
0
def getNameWithInt(int):
    return sendReceiveReq(getTranslateUrl(),
                          gdata={
                              "cmd": "getNameWithInt",
                              "int": int
                          })
Beispiel #9
0
def getAlias2Int(platform):
    return sendReceiveReq(getTranslateDBUrl(),
                          gdata={
                              "cmd": "getAlias2Int",
                              "platform": platform
                          })
Beispiel #10
0
def getAliases(platform):
    return sendReceiveReq(getTranslateUrl(),
                          gdata={
                              "cmd": "getAliases",
                              "platform": platform
                          })
Beispiel #11
0
def getFullDict():
    return sendReceiveReq(getTranslateDBUrl(),
                          gdata={"cmd": "getFullDictionary"})
Beispiel #12
0
def getPlatforms():
    return sendReceiveReq(getTranslateDBUrl(), gdata={"cmd": "getPlatforms"})