예제 #1
0
파일: mgr.py 프로젝트: uwitec/storesystem
 def test_pro_select():
     c = cmd.get_cmd("product", "select",
             "select * from product")
     pMgr = ProductManager(db)
     ret = pMgr.execute_command(c)
     print ret
예제 #2
0
파일: mgr.py 프로젝트: uwitec/storesystem
 def test_pro_update():
     c = cmd.get_cmd("product", "update",
             "update product set name='one' where id = 2")
     pMgr = ProductManager(db)
     ret = pMgr.execute_command(c)
     print ret
예제 #3
0
파일: mgr.py 프로젝트: uwitec/storesystem
 def text_login():
     c = cmd.get_cmd("user", "login",
             "select * from user where name='admin' and password='******'")
     uMgr = UserManager(db)
     res = uMgr.execute_command(c)
     print res