예제 #1
0
    def insert_data(self, signature, impath):

        uu  = CabPic.create(
            uid = str(uuid.uuid1()),
            imgpath = impath,
            create_timestamp = time.time()
        )
예제 #2
0
    def insert_data(self, signature, impath):

        uu  = CabPic.create(
            uid = str(uuid.uuid1()),
            imgpath = impath,
            create_timestamp = time.time()
        )
예제 #3
0
 def insert_data(self, signature, impath):
     entry = CabPic.create(
         uid=signature,
         imgpath=impath,
         create_timestamp=time.time()
     )
     return entry
예제 #4
0
 def __init__(self):
     try:
         CabPic.create_table()
     except:
         pass
예제 #5
0
 def __init__(self):
     try:
         CabPic.create_table()
     except:
         pass
예제 #6
0
 def getall(self):
     return CabPic.select()
예제 #7
0
 def insert_data(self, signature, impath):
     entry = CabPic.create(uid=signature,
                           imgpath=impath,
                           create_timestamp=time.time())
     return entry
예제 #8
0
 def getall(self):
     return CabPic.select()