bugfix
This commit is contained in:
parent
4cfd9dffd8
commit
edce30e08f
@ -83,7 +83,10 @@ class PageLoader:
|
|||||||
self.dir = 'up'
|
self.dir = 'up'
|
||||||
|
|
||||||
def show_page(self,o,d):
|
def show_page(self,o,d):
|
||||||
pass
|
p = self.curpage * self.page_rows + 1
|
||||||
|
for r in d['rows']:
|
||||||
|
r['__posInSet__'] = p
|
||||||
|
p += 1
|
||||||
|
|
||||||
def loadPage(self,p):
|
def loadPage(self,p):
|
||||||
self.curpage = p
|
self.curpage = p
|
||||||
@ -154,6 +157,7 @@ class RelatedLoader(PageLoader):
|
|||||||
del self.objectPages[page]
|
del self.objectPages[page]
|
||||||
|
|
||||||
def show_page(self,o,data):
|
def show_page(self,o,data):
|
||||||
|
super().show_page(o,data)
|
||||||
if self.objectPages.get(self.curpage):
|
if self.objectPages.get(self.curpage):
|
||||||
self.deleteBuffer(self.curpage)
|
self.deleteBuffer(self.curpage)
|
||||||
else:
|
else:
|
||||||
@ -252,6 +256,7 @@ class Paging(PageLoader):
|
|||||||
self.widget.add_widget(self.filter)
|
self.widget.add_widget(self.filter)
|
||||||
|
|
||||||
def show_page(self,o,d):
|
def show_page(self,o,d):
|
||||||
|
super().show_page(o,data)
|
||||||
d = DictObject(**d)
|
d = DictObject(**d)
|
||||||
self.total_cnt = d.total
|
self.total_cnt = d.total
|
||||||
self.calculateTotalPage()
|
self.calculateTotalPage()
|
||||||
|
Loading…
Reference in New Issue
Block a user