Example #1
0
 def get(self, page=None, pre_page=None, iid=None):
     if iid:
         return self.succ(DocIndex.get(iid))
     return self.succ(DocIndex.select(
         page,
         pre_page
     ))
Example #2
0
 def delete(self, iid):
     index = DocIndex.get(iid)
     DocIndex.delete(iid, auto_commit=False)
     return self.success(DOC.DELETE, DocIndex, index)
Example #3
0
 def get(self, page=None, pre_page=None, iid=None):
     if iid:
         return self.succ(DocIndex.get(iid))
     return self.succ(DocIndex.select(page, pre_page))
Example #4
0
 def delete(self, iid):
     index = DocIndex.get(iid)
     DocIndex.delete(iid, auto_commit=False)
     return self.success(DOC.DELETE, DocIndex, index)