コード例 #1
0
ファイル: views.py プロジェクト: RohithKP/LetterPrinting
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
ファイル: task copy.py プロジェクト: RohithKP/LetterPrinting
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)