# HG changeset patch # User casties # Date 1382631774 -7200 # Node ID d24a8673d68ed5e7b23b3c372d9630aa9fe6c084 # Parent 2abc89d58140baa63c871daa5d96d2c822c15c71 trying to fix bug in error message. diff -r 2abc89d58140 -r d24a8673d68e zopePubmanConnector.py --- a/zopePubmanConnector.py Tue Oct 01 18:13:12 2013 +0200 +++ b/zopePubmanConnector.py Thu Oct 24 18:22:54 2013 +0200 @@ -295,7 +295,7 @@ h = httplib2.Http(cacheFolder,timeout=TIMEOUT) cn = self.connectorString+"cqlQuery=escidoc.objid=%s&" cn +="exportFormat=APA&outputFormat=snippet&language=all&sortKeys=escidoc.any-dates&sortOrder=descending" - + content = None try: resp, content = h.request(cn%escidocid) ET.register_namespace("dcterms", "http://purl.org/dc/terms/") @@ -303,7 +303,7 @@ root = ET.fromstring(content) except: logging.error("zopePubmanConnector: cannot parse: %s"%content) - return "",'' + return "","" citationxpath=".//{http://purl.org/dc/terms/}bibliographicCitation"