Skip to content
Permalink
Browse files

merge OWSLib 0.8.10 CSW fix

  • Loading branch information
tomkralidis committed Nov 5, 2014
1 parent fcc8a00 commit 05a9636874a65016bc0788ec1a1bb66e89593ae4
Showing with 7 additions and 2 deletions.
  1. +7 −2 python/ext-libs/owslib/csw.py
@@ -8,7 +8,7 @@
# =============================================================================

""" CSW request and response processor """

import inspect
import warnings
import StringIO
import random
@@ -591,7 +591,10 @@ def _invoke(self):
# If skip_caps=True, then self.operations has not been set, so use
# default URL.
if hasattr(self, 'operations'):
for op in self.operations:
caller = inspect.stack()[1][3]
if caller == 'getrecords2': caller = 'getrecords'
try:
op = self.get_operation_by_name(caller)
post_verbs = filter(lambda x: x.get('type').lower() == 'post', op.methods)
if len(post_verbs) > 1:
# Filter by constraints. We must match a PostEncoding of "XML"
@@ -602,6 +605,8 @@ def _invoke(self):
xml_post_url = post_verbs[0].get('url')
elif len(post_verbs) == 1:
xml_post_url = post_verbs[0].get('url')
except: # no such luck, just go with xml_post_url
pass

self.request = cleanup_namespaces(self.request)
# Add any namespaces used in the "typeNames" attribute of the

0 comments on commit 05a9636

Please sign in to comment.
You can’t perform that action at this time.