예제 #1
0
def tryit():
    templatename = request.form['templatename']
    jsonid = request.form['jsonid']
    jsonpath = request.form['jsonpath']+jsonid
    projectname = request.form['projectname']
    x = sec.renderx(templatename,session['user_name'],projectname,jsonpath)
    if x == -1:
       return 'error'
    else:
       return render_template('out.html',templatename = templatename,projectname=projectname)
예제 #2
0
def tryit():
    templatename = request.form['templatename']
    jsonid = request.form['jsonid']
    jsonpath = request.form['jsonpath'] + jsonid
    projectname = request.form['projectname']
    x = sec.renderx(templatename, session['user_name'], projectname, jsonpath)
    if x == -1:
        return 'error'
    else:
        return render_template('out.html',
                               templatename=templatename,
                               projectname=projectname)
예제 #3
0
def render(templatename, data, projectname, user):
    print "render was called" + str(current_process().index)
    odtout = sec.renderx(templatename, user, projectname, data)
예제 #4
0
def render(templatename,data,projectname,user):
         print "render was called"+str(current_process().index)
         odtout =  sec.renderx(templatename,user,projectname,data)
         if os.path.isfile(str(odtout[1])):
              pdfgen.delay(odtout,user,projectname)