[pycsw-devel] Constraint parameter

Adrià Mercader amercader.dev at gmail.com
Fri Jun 3 09:43:54 EDT 2011

Hi all,
I'm using the latest svn trunk, and when doing a GetRecords query like
the following I get a 500 error with the following traceback:


Traceback (most recent call last):
  File "/var/www/apps/pycsw/trunk/csw.py", line 40, in <module>
  File "/var/www/apps/pycsw/trunk/server/server.py", line 243, in dispatch
    self.response = self.getrecords()
  File "/var/www/apps/pycsw/trunk/server/server.py", line 834, in getrecords
    (self.kvp['constraint'], self.kvp['sortby'], self.kvp['typenames']))
KeyError: 'constraint'

If I add something like "&CONSTRAINT=1" to the query I get the
records. AFAIK, constraint is an optional parameter of the getrecords
request, so maybe this is a bug?




Adrià Mercader

More information about the Pycsw-devel mailing list