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