Пример #1
0
def post(line):
    data = ' '.join(line[2:]).split(",")
    outDict = {}
    for x in data:
        x = x.split("=")
        outDict[x[0]] = utils.typeDetermin(' '.join(x[1:]))

    utils.baseVariables["POSTDATA"] = outDict
Пример #2
0
def post(line):
    data = ' '.join(line[2:]).split(",")
    outDict = {}
    for x in data:
        x = x.split("=")
        outDict[x[0]] = utils.typeDetermin(' '.join(x[1:]))
        
    utils.baseVariables["POSTDATA"] = outDict
Пример #3
0
def show(line):
    if line[1] == "$HTML":
        print etree.tostring(html.fromstring(utils.typeDetermin(line[1])),
                             pretty_print=True)
    else:
        print utils.typeDetermin(line[1])
Пример #4
0
def show(line):
    if line[1] == "$HTML":
        print(etree.tostring(html.fromstring(utils.typeDetermin(line[1]), pretty_print=True)))
    else:
        print(utils.typeDetermin(line[1]))
Пример #5
0
def basicSet(line):
    utils.baseVariables[line[1]] = utils.typeDetermin(' '.join(line[2:]))
Пример #6
0
def prettyprint(line):
    soup = bs(utils.typeDetermin(line[1]))
    prettyHTML = soup.prettify().encode('UTF-8')
    print prettyHTML
Пример #7
0
def basicSet(line):
    utils.baseVariables[line[1]] = utils.typeDetermin(' '.join(line[2:]))