Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 3d7729b1f74359da2856cc4b1188798d34d1e059

added support for pdfs without download url
  
539539 prev_anno = annomanager.get_prev_annotation(page)
540540 if prev_anno is not None:
541541 _logger.debug('prev annotation page is %d' % prev_anno.page)
542 self._view.set_current_page(prev_anno.page + 1)
542 self._view.set_current_page(prev_anno.page)
543543
544544
545545 def __next_annotation_activate_cb(self, menuitem):
550550
551551 if next_anno is not None:
552552 _logger.debug('next annotation page is %d' % next_anno.page)
553 self._view.set_current_page(next_anno.page + 1)
553 self._view.set_current_page(next_anno.page)
554554
555555 def __bookmarker_toggled_cb(self, button):
556556 page = self._view.get_current_page()
readdb.py
(2 / 1)
  
623623 #if self._annotates == "":
624624 # self._annotates = "_"
625625 #values = {'w3c_hasTarget' : self._annotates}
626 values = {'w3c_hasTarget' : self._filehash}
626 values = {'checksum' : self._filehash}
627627 _logger.debug('download annotations -- annotates is: %s ' % self._annotates)
628628 try:
629629 data = urllib.urlencode(values)
633633 except Exception, detail:
634634 _logger.debug("readdb: failure at initial sync request f. annotations; detail: %s ", detail)
635635
636 _logger.debug('annojson is: %s', str(annojson))
636637 if (annojson != None) and (len(annojson) > 0):
637638 anno_arr = self.parse_annotations(annojson)
638639 _logger.debug('length anno_arr %d', len(anno_arr))