<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br>> Date: Fri, 3 Jun 2011 14:43:54 +0100<br>> From: amercader.dev@gmail.com<br>> To: pycsw-devel@lists.sourceforge.net<br>> Subject: [pycsw-devel] Constraint parameter<br>> <br>> Hi all,<br>> I'm using the latest svn trunk, and when doing a GetRecords query like<br>> the following I get a 500 error with the following traceback:<br>> <br>> http://localhost/csw/csw.py?REQUEST=GetRecords&SERVICE=CSW&VERSION=2.0.2&CONSTRAINTLANGUAGE=CQL_TEXT&TYPENAMES=csw:Record&RESULTTYPE=results&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&CONSTRAINT_LANGUAGE_VERSION=1.1.0&ELEMENTSETNAME=brief<br>> <br>> Traceback (most recent call last):<br>> File "/var/www/apps/pycsw/trunk/csw.py", line 40, in <module><br>> CSW.dispatch()<br>> File "/var/www/apps/pycsw/trunk/server/server.py", line 243, in dispatch<br>> self.response = self.getrecords()<br>> File "/var/www/apps/pycsw/trunk/server/server.py", line 834, in getrecords<br>> (self.kvp['constraint'], self.kvp['sortby'], self.kvp['typenames']))<br>> KeyError: 'constraint'<br>> <br>> If I add something like "&CONSTRAINT=1" to the query I get the<br>> records. AFAIK, constraint is an optional parameter of the getrecords<br>> request, so maybe this is a bug?<br>> <br>> Cheers,<br>> <br>> Adrià<br>> <br><br>Hi Adrià: thanks for the info. I've applied a fix in trunk. Can you test and let me know if this works for you?<br><br>..Tom<br><br>                                            </body>
</html>