diff options
author | Andi_G <andigros72@googlemail.com> | 2011-08-20 01:45:39 (GMT) |
---|---|---|
committer | Andi_G <andigros72@googlemail.com> | 2011-08-20 01:45:39 (GMT) |
commit | 3d7729b1f74359da2856cc4b1188798d34d1e059 (patch) | |
tree | d9d540c796fc5dd073ec0829a0bd3bd0feb33870 /readdb.py | |
parent | b870f1bf3d1385ab14c95f3203a9427693a137f9 (diff) |
added support for pdfs without download url
Diffstat (limited to 'readdb.py')
-rw-r--r-- | readdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -623,7 +623,7 @@ class AnnotationManager: #if self._annotates == "": # self._annotates = "_" #values = {'w3c_hasTarget' : self._annotates} - values = {'w3c_hasTarget' : self._filehash} + values = {'checksum' : self._filehash} _logger.debug('download annotations -- annotates is: %s ' % self._annotates) try: data = urllib.urlencode(values) @@ -633,6 +633,7 @@ class AnnotationManager: except Exception, detail: _logger.debug("readdb: failure at initial sync request f. annotations; detail: %s ", detail) + _logger.debug('annojson is: %s', str(annojson)) if (annojson != None) and (len(annojson) > 0): anno_arr = self.parse_annotations(annojson) _logger.debug('length anno_arr %d', len(anno_arr)) |