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 ))
def delete(self, iid): index = DocIndex.get(iid) DocIndex.delete(iid, auto_commit=False) return self.success(DOC.DELETE, DocIndex, index)
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))