comparison src/browser/sat_browser/blog.py @ 705:531eacb82e9f

browser and server sides: renamed max to max_ after sat's changeset 1423 (882e5fabf68c)
author souliane <souliane@mailoo.org>
date Thu, 04 Jun 2015 12:03:45 +0200
parents 82123705474b
children d75935e2b279
comparison
equal deleted inserted replaced
704:5319110a862c 705:531eacb82e9f
477 """Load all the comments for the given main entry. 477 """Load all the comments for the given main entry.
478 478
479 @param main_entry (MicroblogEntry): main entry having comments. 479 @param main_entry (MicroblogEntry): main entry having comments.
480 """ 480 """
481 index = str(main_entry.comments_count - main_entry.hidden_count) 481 index = str(main_entry.comments_count - main_entry.hidden_count)
482 rsm = {'max': str(main_entry.hidden_count), 'index': index} 482 rsm = {'max_': str(main_entry.hidden_count), 'index': index}
483 self.host.bridge.call('getMblogComments', self.mblogsInsert, main_entry.comments_service, main_entry.comments_node, rsm) 483 self.host.bridge.call('getMblogComments', self.mblogsInsert, main_entry.comments_service, main_entry.comments_node, rsm)
484 484
485 def loadMoreMainEntries(self): 485 def loadMoreMainEntries(self):
486 if self.footer.waiting: 486 if self.footer.waiting:
487 return 487 return
489 self.footer.setHTML("loading...") 489 self.footer.setHTML("loading...")
490 490
491 self.host.loadOurMainEntries(self.next_rsm_index, self) 491 self.host.loadOurMainEntries(self.next_rsm_index, self)
492 492
493 type_ = 'ALL' if self.accepted_groups == [] else 'GROUP' 493 type_ = 'ALL' if self.accepted_groups == [] else 'GROUP'
494 rsm = {'max': str(C.RSM_MAX_ITEMS), 'index': str(self.next_rsm_index)} 494 rsm = {'max_': str(C.RSM_MAX_ITEMS), 'index': str(self.next_rsm_index)}
495 self.host.bridge.getMassiveMblogs(type_, list(self.accepted_groups), rsm, profile=C.PROF_KEY_NONE, callback=self.massiveInsert) 495 self.host.bridge.getMassiveMblogs(type_, list(self.accepted_groups), rsm, profile=C.PROF_KEY_NONE, callback=self.massiveInsert)
496 496
497 def getWarningData(self, comment): 497 def getWarningData(self, comment):
498 """ 498 """
499 @param comment: set to True if the composed message is a comment 499 @param comment: set to True if the composed message is a comment