Package list sugar-read-activity / 96ec81e
Remove unnecessary errors from log James Cameron 4 years ago
4 changed file(s) with 0 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
5050
5151 def update_metadata(self, activity):
5252 self.metadata = activity.metadata
53 logging.error('Saving zoom %s', self.get_zoom())
5453 self.metadata['Read_zoom'] = self.get_zoom()
5554
5655 def zoom_to_width(self):
5555 """ % hide_scrollbar_js
5656 self.execute_script(js)
5757 ret = self.get_main_frame().get_title()
58 logging.error('get_page_height %s', ret)
5958 self.execute_script('document.title=%s;' % oldtitle)
6059 try:
6160 return int(ret)
590590 self._view.show_highlights(page_to)
591591
592592 def _update_bookmark_cb(self, sidebar):
593 logging.error('update bookmark event')
594593 self.update_bookmark_button()
595594
596595 def update_bookmark_button(self):
1000999 self.filehash = self.metadata.get('filehash', None)
10011000 if self.filehash is None:
10021001 self.filehash = get_md5(filepath)
1003 logging.error('Calculate hash %s', self.filehash)
10041002
10051003 self._bookmarkmanager = BookmarkManager(self.filehash)
10061004
332332
333333 def update_metadata(self, activity):
334334 self.metadata = activity.metadata
335 logging.error('Saving zoom %s', self.get_zoom())
336335 self.metadata['Read_zoom'] = self.get_zoom()
337336
338337 def load_metadata(self, activity):