Example #1
0
    def post(self):
        id1 = (self.get_argument(name='id1',default=''))
        id2 = (self.get_argument(name='id2',default=''))
        id3 = (self.get_argument(name='id3',default=''))
        id4 = (self.get_argument(name='id4',default=''))
        id = (self.get_argument(name='id',default=''))
        zone = (self.get_argument(name='zone',default=''))
        name1 = (self.get_argument(name='name1',default=''))
        name2 = (self.get_argument(name='name2',default=''))
        address = (self.get_argument(name='address',default=''))
        telephone = (self.get_argument(name='telephone',default=''))
        print zone
        print name1
        print telephone
        host=id1
        user=id2
        passwd=id3
        db=id4
        mySQL = DBIOConnection()
        (ID,zone,name1,name2,address,telephone,i) = mySQL.net_conn(host,user,passwd,db)
        self.render('shuju.html',
                    id=ID,
                    zone=zone,
                    name1=name1,
                    name2=name2,
                    address=address,
                    telephone=telephone,
                    i=i,
                    j = 0
                    
                    

                 )
Example #2
0
 def post(self):
     id1 = self.get_argument(name="id1", default="")
     id2 = self.get_argument(name="id2", default="")
     id3 = self.get_argument(name="id3", default="")
     id4 = self.get_argument(name="id4", default="")
     host = id1
     user = id2
     passwd = id3
     db = id4
     mySQL = DBIOConnection()
     (ID, zone, name1, name2, address, telephone, i) = mySQL.net_conn(host, user, passwd, db)
     self.render(
         "mysql.html", id=ID, zone=zone, name1=name1, name2=name2, address=address, telephone=telephone, i=i, j=0
     )
Example #3
0
    def post(self):
        
        id1 = (self.get_argument(name='id1',default=''))
        id2 = (self.get_argument(name='id2',default=''))
        id3 = (self.get_argument(name='id3',default=''))
        id4 = (self.get_argument(name='id4',default=''))
        id = (self.get_argument(name='id',default=''))
        z = (self.get_argument(name='zone',default=''))
        n1 = (self.get_argument(name='name1',default=''))
        n2 = (self.get_argument(name='name2',default=''))
        add = (self.get_argument(name='address',default=''))
        tele = (self.get_argument(name='telephone',default=''))
        vs=[z,n1,n2,add,tele,id]
        host=id1
        user=id2
        passwd=id3
        db=id4
        mySQL = DBIOConnection()
        (ID,zone,name1,name2,address,telephone,i) = mySQL.net_conn(host,user,passwd,db)
        mySQL.update(host,user,passwd,db,*vs)
        print vs
        print id1
        print id2
        print id3
        print id4
        print id
        print z
        print n1
        print n2
        print add
        print tele
        
        self.render('shuju.html',
                    id=ID,
                    zone=zone,
                    name1=name1,
                    name2=name2,
                    address=address,
                    telephone=telephone,
                    i=i,
                    j = 0,
                    host=host,
                    user=user,
                    passwd=passwd,
                    db=db
                    
                    

                 )