Exemplo n.º 1
0
 def insert_data(self, raw_data):
     entry = CabWikiHist.create(
         uid=tools.get_uuid(),
         title=raw_data.title,
         date=raw_data.date,
         wiki_id=raw_data.uid,
         time_create=raw_data.time_create,
         user_name=raw_data.user_name,
         cnt_md=raw_data.cnt_md,
         time_update=raw_data.time_update,
     )
     return (entry.uid)
Exemplo n.º 2
0
 def insert_data(self, raw_data):
     entry = CabWikiHist.create(
         uid=tools.get_uuid(),
         title=raw_data.title,
         date=raw_data.date,
         wiki_id=raw_data.uid,
         time_create=raw_data.time_create,
         user_name=raw_data.user_name,
         cnt_md=raw_data.cnt_md,
         time_update=raw_data.time_update,
     )
     return (entry.uid)
Exemplo n.º 3
0
 def query_all(self):
     return CabWikiHist.select().order_by('time_update')
Exemplo n.º 4
0
 def get_by_id(self, in_uid):
     tt = CabWikiHist.get(CabWikiHist.uid == in_uid)
     return tt
Exemplo n.º 5
0
 def __init__(self):
     try:
         CabWikiHist.create_table()
     except:
         pass
Exemplo n.º 6
0
 def __init__(self):
     self.tab = CabWikiHist
     try:
         CabWikiHist.create_table()
     except:
         pass
Exemplo n.º 7
0
 def query_all(self):
     return CabWikiHist.select().order_by('time_update')
Exemplo n.º 8
0
 def get_by_id(self, in_uid):
     tt = CabWikiHist.get(CabWikiHist.uid == in_uid)
     return tt