Ejemplo n.º 1
0
 def POST(self, page = 1):
     spost = web.input(s = '')
     skey = spost.s
     skey = skey.encode("utf-8")
     pagestr = ''
     posts = model.execSql("select * from " + tablename("Posts") + " where post_title like '%" + skey + "%'")
     R.common_data()
     return R.render('index', posts = posts, pagestr = pagestr)
Ejemplo n.º 2
0
 def POST(self):
     spost = web.input(execsql = '')
     execsql = ''
     if spost.execsql:
         execsql = spost.execsql
         results = model.execSql(execsql)
     
     return render.sql(execsql, results)
Ejemplo n.º 3
0
    def POST(self):
        spost = web.input(execsql='')
        execsql = ''
        if spost.execsql:
            execsql = spost.execsql
            results = model.execSql(execsql)

        return render.sql(execsql, results)
Ejemplo n.º 4
0
 def POST(self, page=1):
     spost = web.input(s='')
     skey = spost.s
     skey = skey.encode("utf-8")
     pagestr = ''
     posts = model.execSql("select * from " + tablename("Posts") +
                           " where post_title like '%" + skey + "%'")
     R.common_data()
     return R.render('index', posts=posts, pagestr=pagestr)
Ejemplo n.º 5
0
 def POST(self):
     spost = web.input(execsql = '')
     execsql = ''
     if spost.execsql:
         execsql = spost.execsql
         results = model.execSql(execsql)
     for r in results:
         print r
         for t in r:
             print t
     return render.data(execsql, results)
Ejemplo n.º 6
0
 def POST(self):
     spost = web.input(execsql='')
     execsql = ''
     if spost.execsql:
         execsql = spost.execsql
         results = model.execSql(execsql)
     for r in results:
         print r
         for t in r:
             print t
     return render.data(execsql, results)