Skip to content
Commits on Source (3)
pycsw (2.2.0+dfsg-4) unstable; urgency=medium
* Team upload.
* Refresh patches.
* Add patch to fix SyntaxError with Python 3.7 by
renaming 'async' property to 'asynchronous'.
(closes: #903784)
-- Bas Couwenberg <sebastic@debian.org> Sun, 15 Jul 2018 09:59:41 +0200
pycsw (2.2.0+dfsg-3) unstable; urgency=medium
* Team upload.
......
......@@ -18,7 +18,7 @@ W3C and jquery
<script type="text/javascript">
$(document).ready(function() {
$('.xml').change(function() {
@@ -469,8 +469,6 @@
@@ -829,8 +829,6 @@
</ul>
<hr/>
<footer>
......
......@@ -6,9 +6,9 @@ Subject: Use xdg-open instead of firefox in desktop file
etc/pycsw.desktop | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- pycsw.orig/etc/pycsw.desktop
+++ pycsw/etc/pycsw.desktop
@@ -3,7 +3,7 @@
--- a/etc/pycsw.desktop
+++ b/etc/pycsw.desktop
@@ -3,7 +3,7 @@ Type=Application
Encoding=UTF-8
Name=pycsw
Comment=pycsw catalog server
......
......@@ -6,8 +6,8 @@ Subject: Don't include external references to images
docs/_templates/indexsidebar.html | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
--- pycsw.orig/docs/_templates/indexsidebar.html
+++ pycsw/docs/_templates/indexsidebar.html
--- a/docs/_templates/indexsidebar.html
+++ b/docs/_templates/indexsidebar.html
@@ -1,19 +1,19 @@
<p>
- <a title="This product conforms to the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web], Revision 3.0.0. OGC, OGC®, and CERTIFIED OGC COMPLIANT are trademarks or registered trademarks of the Open Geospatial Consortium, Inc. in the United States and other countries." href="http://www.opengeospatial.org/resource/products/details/?pid=1374"><img alt="This product conforms to the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web], Revision 3.0.0. OGC, OGC®, and CERTIFIED OGC COMPLIANT are trademarks or registered trademarks of the Open Geospatial Consortium, Inc. in the United States and other countries." src="https://portal.opengeospatial.org/public_ogc/compliance/Certified_OGC_Compliant_Logo_Web.gif" height="74"/></a>
......
Description: Rename 'async' property to fix SyntaxError with Python 3.7.
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/903784
Bug: https://github.com/geopython/pycsw/issues/570
Forwarded: https://github.com/geopython/pycsw/pull/571
--- a/pycsw/ogc/csw/csw2.py
+++ b/pycsw/ogc/csw/csw2.py
@@ -1933,7 +1933,7 @@ class Csw2(object):
node2.text = self.parent.request
- if self.parent.async:
+ if self.parent.asynchronous:
etree.SubElement(node, util.nspath_eval('csw:RequestId',
self.parent.context.namespaces)).text = self.kvp['requestid']
--- a/pycsw/ogc/csw/csw3.py
+++ b/pycsw/ogc/csw/csw3.py
@@ -2010,7 +2010,7 @@ class Csw3(object):
node2.text = self.parent.request
- if self.parent.async:
+ if self.parent.asynchronous:
etree.SubElement(node, util.nspath_eval('csw30:RequestId',
self.parent.context.namespaces)).text = self.parent.kvp['requestid']
--- a/pycsw/server.py
+++ b/pycsw/server.py
@@ -75,7 +75,7 @@ class Csw(object):
self.kvp = {}
self.mode = 'csw'
- self.async = False
+ self.asynchronous = False
self.soap = False
self.request = None
self.exception = False
@@ -539,7 +539,7 @@ class Csw(object):
if 'responsehandler' in self.kvp:
# set flag to process asynchronously
import threading
- self.async = True
+ self.asynchronous = True
request_id = self.kvp.get('requestid', None)
if request_id is None:
import uuid
@@ -552,7 +552,7 @@ class Csw(object):
elif self.kvp['request'] == 'GetDomain':
self.response = self.iface.getdomain()
elif self.kvp['request'] == 'GetRecords':
- if self.async: # process asynchronously
+ if self.asynchronous: # process asynchronously
threading.Thread(target=self.iface.getrecords).start()
self.response = self.iface._write_acknowledgement()
else:
@@ -564,7 +564,7 @@ class Csw(object):
elif self.kvp['request'] == 'Transaction':
self.response = self.iface.transaction()
elif self.kvp['request'] == 'Harvest':
- if self.async: # process asynchronously
+ if self.asynchronous: # process asynchronously
threading.Thread(target=self.iface.harvest).start()
self.response = self.iface._write_acknowledgement()
else:
......@@ -3,3 +3,4 @@
0004-Use-xdg-open-instead-of-firefox-in-desktop-file.patch
0006-Don-t-include-external-references-to-images.patch
0007-python-six-dependency.patch
python3.7-async.patch